Skip to content

Commit

Permalink
Merge pull request nsqio#987 from omz-one/master
Browse files Browse the repository at this point in the history
fix assertions.NotNil() error log args
  • Loading branch information
ploxiln authored Jan 19, 2018
2 parents cb83885 + b246d64 commit a7d52f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/test/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NotNil(t *testing.T, object interface{}) {
if isNil(object) {
_, file, line, _ := runtime.Caller(1)
t.Logf("\033[31m%s:%d:\n\n\tExpected value not to be <nil>\033[39m\n\n",
filepath.Base(file), line, object)
filepath.Base(file), line)
t.FailNow()
}
}
Expand Down

0 comments on commit a7d52f3

Please sign in to comment.