1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 18:44:50 +00:00

Hmm, slice out of range error, wtf x3!

This commit is contained in:
Alex Bramley 2011-10-22 16:44:28 +01:00
parent 1df07d2ff6
commit eea12a554b

View file

@ -59,7 +59,7 @@ func (m writerMap) CheckWrittenAtLevel(t *testing.T, lv LogLevel, exp string) {
}
// 32 bytes covers the date, time and filename up to the colon in
// 2011/10/22 10:22:57 log_test.go:<line no>: <level> <log message>
if len(w.written) <= 32 {
if len(w.written) <= 33 {
t.Errorf("Not enough bytes logged at level %s:", LogString(lv))
t.Errorf("\tgot: %s", string(w.written))
}