Update log test for upstream seelog changes.
This commit is contained in:
parent
c4f1ed69d2
commit
c112c004cf
1 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue