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",
|
name: "use off level",
|
||||||
w: os.Stdout,
|
w: os.Stdout,
|
||||||
level: "off",
|
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",
|
name: "pass",
|
||||||
|
@ -52,13 +52,13 @@ func TestSetLogWriter(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err.Error() != test.expected.Error() {
|
if err.Error() != test.expected.Error() {
|
||||||
t.Errorf("SetLogWriter #%d (%s) wrong result\n"+
|
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)
|
test.expected)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if test.expected != nil {
|
if test.expected != nil {
|
||||||
t.Errorf("SetLogWriter #%d (%s) wrong result\n"+
|
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)
|
test.expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue