Fix typo in TestNonColorableNil

This commit is contained in:
Oleksandr Redko 2024-12-09 22:01:24 +02:00
parent 603fb50de6
commit 50c5b53597

View File

@ -48,17 +48,17 @@ func TestNonColorable(t *testing.T) {
}
func TestNonColorableNil(t *testing.T) {
paniced := false
panicked := false
func() {
defer func() {
recover()
paniced = true
panicked = true
}()
NewNonColorable(nil)
NewColorable(nil)
}()
if !paniced {
if !panicked {
t.Fatalf("should panic")
}
}