From eea12a554b404ffed722a6b483fa56844c7df881 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sat, 22 Oct 2011 16:44:28 +0100 Subject: [PATCH] Hmm, slice out of range error, wtf x3! --- logging/mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/mock.go b/logging/mock.go index 66e046e..cb96f2d 100644 --- a/logging/mock.go +++ b/logging/mock.go @@ -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:: - 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)) }