Skip to content

Commit

Permalink
Update log test for upstream seelog changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Jan 16, 2015
1 parent c4f1ed6 commit c112c00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestSetLogWriter(t *testing.T) {
name: "use off level",
w: os.Stdout,
level: "off",
expected: errors.New("Min level can't be greater than max. Got min: 6, max: 5"),
expected: errors.New("min level can't be greater than max. Got min: 6, max: 5"),
},
{
name: "pass",
Expand All @@ -52,13 +52,13 @@ func TestSetLogWriter(t *testing.T) {
if err != nil {
if err.Error() != test.expected.Error() {
t.Errorf("SetLogWriter #%d (%s) wrong result\n"+
"got: %x\nwant: %x", i, test.name, err,
"got: %v\nwant: %v", i, test.name, err,
test.expected)
}
} else {
if test.expected != nil {
t.Errorf("SetLogWriter #%d (%s) wrong result\n"+
"got: %x\nwant: %x", i, test.name, err,
"got: %v\nwant: %v", i, test.name, err,
test.expected)
}
}
Expand Down

0 comments on commit c112c00

Please sign in to comment.