Suppress logging noise in tests

This commit is contained in:
Matt Joiner 2016-03-30 19:12:57 +11:00
parent 7790e72832
commit c0e060de63
1 changed files with 1 additions and 2 deletions

View 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)
}
}