From: Matt Joiner Date: Wed, 30 Mar 2016 08:12:57 +0000 (+1100) Subject: Suppress logging noise in tests X-Git-Tag: v1.0.0~806 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c0e060de63d0c8d533810a76d0c6037776cceb0a;p=btrtrc.git Suppress logging noise in tests --- 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) } }