Skip to content

Commit

Permalink
testLogSpy: Logf should log the message
Browse files Browse the repository at this point in the history
testLogSpy was logging the `args`, not the actual string.
  • Loading branch information
abhinav authored and akshayjshah committed Apr 12, 2018
1 parent f65dd74 commit 259bcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zaptest/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (t *testLogSpy) Logf(format string, args ...interface{}) {
t.Messages = append(t.Messages, m)
t.mu.Unlock()

t.TB.Log(args...)
t.TB.Log(m)
}

func (t *testLogSpy) AssertMessages(msgs ...string) {
Expand Down

0 comments on commit 259bcbf

Please sign in to comment.