Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions o11y/otel/otel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ func TestO11y(t *testing.T) {
t.Run("find trace", func(t *testing.T) {

jc := jaeger.New("http://localhost:16686", tt.cfg.Service)
poll.WaitOn(t, func(t poll.LogT) poll.Result {
traces, err := jc.Traces(ctx, start)
if err != nil {
return poll.Error(err)
}
if len(traces) >= 1 {
return poll.Success()
}
return poll.Continue("only got %d traces", len(traces))
Comment on lines +138 to +141
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if len(traces) >= 1 {
return poll.Success()
}
return poll.Continue("only got %d traces", len(traces))
return poll.Compare(cmp.Len(traces, 1))

})
traces, err := jc.Traces(ctx, start)
assert.NilError(t, err)
assert.Assert(t, cmp.Len(traces, 1))
Expand Down