Skip to content

Commit

Permalink
Make Test Logging Unconditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mahadzaryab1 committed Aug 31, 2024
1 parent bd6fd79 commit ad40036
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/jaeger/internal/integration/tailsampling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,16 @@ func (ts *TailSamplingIntegration) testTailSamplingProccessor(t *testing.T) {
ts.generateTraces(t)

var actual []string
found := assert.Eventually(t, func() bool {
assert.Eventually(t, func() bool {
var err error
actual, err = ts.SpanReader.GetServices(context.Background())
require.NoError(t, err)
sort.Strings(actual)
return assert.ObjectsAreEqualValues(ts.expectedServices, actual)
}, 100*time.Second, 15*time.Second)

if !found {
t.Log("\t Expected:", ts.expectedServices)
t.Log("\t Actual :", actual)
}
t.Logf("Expected: %v", ts.expectedServices)
t.Logf("Actual : %v", actual)
}

// generateTraces generates 5 traces using `tracegen` with one service per trace
Expand Down

0 comments on commit ad40036

Please sign in to comment.