mirror of https://github.com/sirupsen/logrus.git
Making panic level assertions more helpful
This commit is contained in:
parent
9836f1ba0e
commit
5164671bc6
|
@ -20,7 +20,7 @@ func TestEntryPanicln(t *testing.T) {
|
||||||
assert.Equal(t, "kaboom", pVal.Message)
|
assert.Equal(t, "kaboom", pVal.Message)
|
||||||
assert.Equal(t, errBoom, pVal.Data["err"])
|
assert.Equal(t, errBoom, pVal.Data["err"])
|
||||||
default:
|
default:
|
||||||
t.Fatal()
|
t.Fatalf("want type *Entry, got %T: %#v", pVal, pVal)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ func TestEntryPanicf(t *testing.T) {
|
||||||
assert.Equal(t, "kaboom true", pVal.Message)
|
assert.Equal(t, "kaboom true", pVal.Message)
|
||||||
assert.Equal(t, errBoom, pVal.Data["err"])
|
assert.Equal(t, errBoom, pVal.Data["err"])
|
||||||
default:
|
default:
|
||||||
t.Fatal()
|
t.Fatalf("want type *Entry, got %T: %#v", pVal, pVal)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue