Skip to content

Commit

Permalink
fix opentelemetry/tracer_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
katiehockman committed Jan 12, 2024
1 parent 9e09024 commit 07b2344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddtrace/opentelemetry/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ func TestForceFlush(t *testing.T) {
_, sp := tr.Start(context.Background(), "test_span")
sp.End()
tp.forceFlush(tc.timeOut, setFlushStatus, tc.flushFunc)
payload, err := waitForPayload(ctx, payloads)
p, err := waitForPayload(ctx, payloads)
if tc.flushed {
assert.NoError(err)
assert.Contains(payload, "test_span")
assert.Equal("test_span", p[0][0]["resource"])
assert.Equal(OK, flushStatus)
} else {
assert.Equal(ERROR, flushStatus)
Expand Down

0 comments on commit 07b2344

Please sign in to comment.