From 88a664833ea616813606a815379e9cbe50dc31a6 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sat, 22 Oct 2011 16:59:28 +0100 Subject: [PATCH] Oops. I was just being fail. --- logging/mock.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/logging/mock.go b/logging/mock.go index 2dbcf9d..fe1a42d 100644 --- a/logging/mock.go +++ b/logging/mock.go @@ -59,10 +59,11 @@ 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)) -// } + return + } s := string(w.written[32:]) // 2 covers the : itself and the extra space idx := strings.Index(s, ":") + 2