Skip to content

Commit

Permalink
Fix flaky tests in samplers/jaegerremote (#4402)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseip committed Oct 10, 2023
1 parent 074ac11 commit eb489c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samplers/jaegerremote/sampler_remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func TestRemoteSamplerOptions(t *testing.T) {
withUpdaters(updaters...),
WithLogger(logger),
)
defer sampler.Close()
assert.Equal(t, 42, sampler.posParams.MaxOperations)
assert.True(t, sampler.posParams.OperationNameLateBinding)
assert.Same(t, initSampler, sampler.sampler)
Expand Down Expand Up @@ -495,6 +496,7 @@ func TestRemotelyControlledSampler_updateRateLimitingOrProbabilisticSampler(t *t
new(rateLimitingSamplerUpdater),
),
)
defer remoteSampler.Close()
err := remoteSampler.updateSamplerViaUpdaters(testCase.res)
if testCase.shouldErr {
require.Error(t, err)
Expand Down

0 comments on commit eb489c5

Please sign in to comment.