Skip to content

Commit 1e07f01

Browse files
committed
update log_hool.Levels() test
1 parent 6d6592f commit 1e07f01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/pgengine/log_hook_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func TestLogHook(t *testing.T) {
4343
h.level = level
4444
assert.NotEmpty(t, h.Levels())
4545
}
46+
47+
h.level = "none"
48+
assert.Empty(t, h.Levels())
49+
4650
<-time.After(time.Second)
4751
}
4852

0 commit comments

Comments
 (0)