]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove racy part of test
authorMatt Joiner <anacrolix@gmail.com>
Fri, 1 Dec 2017 12:08:53 +0000 (23:08 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 1 Dec 2017 12:08:53 +0000 (23:08 +1100)
issue211_test.go

index 4a412e8244a9cab66a6effe6cb38dd30d848d78a..dedbaa5647a80a1337f94e10a7ef3aa38a2852b1 100644 (file)
@@ -31,15 +31,6 @@ func TestDropTorrentWithMmapStorageWhileHashing(t *testing.T) {
        require.NoError(t, err)
        assert.True(t, new)
 
-       // Make sure some of the data is actually there.
-       sub := tt.SubscribePieceStateChanges()
-       for range sub.Values {
-               if tt.BytesCompleted() > 0 {
-                       break
-               }
-       }
-       sub.Close()
-
        r := tt.NewReader()
        go tt.Drop()
        io.Copy(ioutil.Discard, r)