From 63c791593307b13382c50a545a6b6f6aada962a3 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sat, 22 Oct 2011 16:45:53 +0100 Subject: [PATCH] Srsly, fffffuuuu. --- logging/mock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logging/mock.go b/logging/mock.go index cb96f2d..2dbcf9d 100644 --- a/logging/mock.go +++ b/logging/mock.go @@ -59,10 +59,10 @@ 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) <= 33 { +// if len(w.written) <= 33 { t.Errorf("Not enough bytes logged at level %s:", LogString(lv)) t.Errorf("\tgot: %s", string(w.written)) - } +// } s := string(w.written[32:]) // 2 covers the : itself and the extra space idx := strings.Index(s, ":") + 2