]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add some TODOs and tidy a test
authorMatt Joiner <anacrolix@gmail.com>
Tue, 9 Jan 2018 06:26:46 +0000 (17:26 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 9 Jan 2018 06:26:46 +0000 (17:26 +1100)
client_test.go

index 49b4d1ecfbaf20ec3c69d8ddc54f7c43ed0ba5de..6c1b3028497bd009232361e8464a0ee73865f425 100644 (file)
@@ -78,21 +78,22 @@ func TestAddDropTorrent(t *testing.T) {
 }
 
 func TestAddTorrentNoSupportedTrackerSchemes(t *testing.T) {
+       // TODO?
        t.SkipNow()
 }
 
 func TestAddTorrentNoUsableURLs(t *testing.T) {
+       // TODO?
        t.SkipNow()
 }
 
 func TestAddPeersToUnknownTorrent(t *testing.T) {
+       // TODO?
        t.SkipNow()
 }
 
 func TestPieceHashSize(t *testing.T) {
-       if pieceHash.Size() != 20 {
-               t.FailNow()
-       }
+       assert.Equal(t, 20, pieceHash.Size())
 }
 
 func TestTorrentInitialState(t *testing.T) {