From 3710f676707f992be0d0ba1228a589a3269cf672 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sun, 13 Nov 2011 13:30:08 +0000 Subject: [PATCH] gofix weekly fixes for logging. --- logging/mock_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/logging/mock_test.go b/logging/mock_test.go index 418b996..1d64fa0 100644 --- a/logging/mock_test.go +++ b/logging/mock_test.go @@ -1,7 +1,6 @@ package logging import ( - "os" "strings" "testing" ) @@ -13,7 +12,7 @@ type mockWriter struct { written []byte } -func (w *mockWriter) Write(p []byte) (n int, err os.Error) { +func (w *mockWriter) Write(p []byte) (n int, err error) { w.written = append(w.written, p...) return len(p), nil } @@ -62,7 +61,7 @@ func newMock(t *testing.T) (*logger, *writerMap) { logMap[lv] = makeLogger(w) } // Set the default log level high enough that everything will get logged - return New(logMap, (1 << 31) - 1, false), wMap + return New(logMap, (1<<31)-1, false), wMap } // When you expect something to be logged but don't care so much what level at. @@ -89,7 +88,6 @@ func (wm *writerMap) Expect(exp string) { } } - // When you expect nothing to be logged func (wm *writerMap) ExpectNothing() { for lv, w := range wm.m {