]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Suppress logging noise in tests
authorMatt Joiner <anacrolix@gmail.com>
Wed, 30 Mar 2016 08:12:57 +0000 (19:12 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 30 Mar 2016 08:12:57 +0000 (19:12 +1100)
client_test.go

index 5cd83ce841ac76e776d2b83b7a1b04b93d3cb11b..560b340e05a906c63df252cc0cd74ae479131c0d 100644 (file)
@@ -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)
        }
 }