Skip to content

Commit

Permalink
Use right formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Feb 20, 2017
1 parent 6c1ca8a commit 4009068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ func TestGetLogger(t *testing.T) {
mockReq = mockReq.WithContext(ctx)
ctxLogger := GetLogger(mockReq.Context())
if ctxLogger != entry {
t.Errorf("TestGetLogger wanted logger '%s', got '%s'", entry, ctxLogger)
t.Errorf("TestGetLogger wanted logger '%v', got '%v'", entry, ctxLogger)
}

noLoggerInReq, _ := http.NewRequest("GET", "http://example.com/foo", nil)
ctxLogger = GetLogger(noLoggerInReq.Context())
if ctxLogger != nil {
t.Errorf("TestGetLogger wanted nil logger, got '%s'", ctxLogger)
t.Errorf("TestGetLogger wanted nil logger, got '%v'", ctxLogger)
}
}

Expand Down

0 comments on commit 4009068

Please sign in to comment.