Skip to content

Commit

Permalink
remove no-longer-necessary type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed May 17, 2023
1 parent 22f30b7 commit 76526be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/sinkcores/sentrycore/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestWithTrace(t *testing.T) {
logger.WithTrace(tc).With(log.Error(a)).Error("msg")
sync()
assert.Len(t, tr.Events(), 1)
attrs := tr.Events()[0].Contexts["log"].(map[string]interface{})
attrs := tr.Events()[0].Contexts["log"]
assert.Equal(t, "123", attrs["TraceId"])
assert.Equal(t, "456", attrs["SpanId"])
}
Expand All @@ -144,7 +144,7 @@ func TestFields(t *testing.T) {
}
e := tr.Events()[0]
assert.IsType(t, map[string]interface{}{}, e.Contexts["log"])
cb(tr.Events()[0].Contexts["log"].(map[string]interface{}))
cb(tr.Events()[0].Contexts["log"])
}
e := errors.New("test error")

Expand Down

0 comments on commit 76526be

Please sign in to comment.