Skip to content

Commit

Permalink
Fix failing unit test
Browse files Browse the repository at this point in the history
In logging, policy for fields was reversed in 972f219.
  • Loading branch information
olivierlemasle committed Aug 29, 2023
1 parent 0f730c3 commit 718ad21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interceptors/logging/interceptors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ type loggingClientServerSuite struct {
}

func customFields(_ context.Context) logging.Fields {
return logging.Fields{"custom-field", "yolo"}
// Add custom fields. The second one overrides the first one.
return logging.Fields{"custom-field", "foo", "custom-field", "yolo"}
}

func TestSuite(t *testing.T) {
Expand Down

0 comments on commit 718ad21

Please sign in to comment.