mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-05-09 22:08:12 +00:00
tests: fix don't try to test logger with char size
This commit is contained in:
@@ -159,10 +159,10 @@ func TestLogger(t *testing.T) {
|
||||
|
||||
l.App.Info().Msg("test")
|
||||
|
||||
l.AuditLoginFailure("test", "test", "test", "test")
|
||||
l.AuditLoginFailure("test_nop", "test_nop", "test_nop", "test_nop")
|
||||
|
||||
assert.NotEmpty(t, buf.String())
|
||||
assert.Equal(t, 81, buf.Len()) // it's the length of the test log entry
|
||||
assert.NotContains(t, "test_nop", buf.String())
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user