From c0e060de63d0c8d533810a76d0c6037776cceb0a Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 30 Mar 2016 19:12:57 +1100 Subject: [PATCH] Suppress logging noise in tests --- client_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client_test.go b/client_test.go index 5cd83ce8..560b340e 100644 --- a/client_test.go +++ b/client_test.go @@ -716,9 +716,8 @@ func TestTorrentDroppedBeforeGotInfo(t *testing.T) { func writeTorrentData(ts storage.Torrent, info *metainfo.InfoEx, b []byte) { for i := range iter.N(info.NumPieces()) { - n, err := ts.Piece(info.Piece(i)).WriteAt(b, 0) + n, _ := ts.Piece(info.Piece(i)).WriteAt(b, 0) b = b[n:] - log.Print(err) } } -- 2.48.1