]> Sergey Matveev's repositories - btrtrc.git/commitdiff
:)
authorMatt Joiner <anacrolix@gmail.com>
Tue, 9 Dec 2014 03:59:01 +0000 (21:59 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 9 Dec 2014 03:59:01 +0000 (21:59 -0600)
client_test.go

index d5ba379dbd6926fc5da534e70e31b7b7a98e2a48..89134328d7c00dad1620d4bbea71e2cc23546396 100644 (file)
@@ -61,6 +61,7 @@ func TestTorrentInitialState(t *testing.T) {
                t.Fatal("wrong number of pieces")
        }
        p := tor.Pieces[0]
+       tor.pendAllChunkSpecs(0)
        if len(p.PendingChunkSpecs) != 1 {
                t.Fatalf("should only be 1 chunk: %v", p.PendingChunkSpecs)
        }