Skip to content

Commit

Permalink
Update _template/internal/log/context_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Riecken <johannes.riecken@gmail.com>
  • Loading branch information
zalgonoise and johannes-riecken committed Feb 23, 2024
1 parent 1040e81 commit 3957031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _template/internal/log/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestSpanContextHandler_Handle(t *testing.T) {
require.Equal(t, testTraceID.String(), traceID)
}

if spanID, ok := m[spanIDKey]; ok == testcase.withSpanContext && ok {
if spanID, ok := m[spanIDKey]; ok && testcase.withSpanContext {
require.Equal(t, testSpanID.String(), spanID)
}
})
Expand Down

0 comments on commit 3957031

Please sign in to comment.