This commit is contained in:
Matt Joiner 2014-12-08 21:59:01 -06:00
parent 48582796ed
commit 998d85ba50
1 changed files with 1 additions and 0 deletions

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