]> Sergey Matveev's repositories - btrtrc.git/blobdiff - misc_test.go
Allow chunk size to be specified per torrent
[btrtrc.git] / misc_test.go
index a8bd10f44e9c808941723a9e1810e219add34d18..55cd3c66fc07e927b46c09fee46d55c3713bb272 100644 (file)
@@ -4,7 +4,7 @@ import . "gopkg.in/check.v1"
 
 func (suite) TestTorrentOffsetRequest(c *C) {
        check := func(tl, ps, off int64, expected request, ok bool) {
-               req, _ok := torrentOffsetRequest(tl, ps, chunkSize, off)
+               req, _ok := torrentOffsetRequest(tl, ps, defaultChunkSize, off)
                c.Check(_ok, Equals, ok)
                c.Check(req, Equals, expected)
        }