]> Sergey Matveev's repositories - btrtrc.git/blobdiff - torrent_test.go
Add TestHaveAllThenBitfield
[btrtrc.git] / torrent_test.go
index 38ea3d868499ff5541737da3a4091a4490e9fcc2..ce0af9f4e7693a47fee41b18503a6581ce1d4d09 100644 (file)
@@ -143,9 +143,7 @@ func TestEmptyFilesAndZeroPieceLengthWithFileStorage(t *testing.T) {
 
 func TestPieceHashFailed(t *testing.T) {
        mi := testutil.GreetingMetaInfo()
-       cl := new(Client)
-       cl.config = TestingConfig(t)
-       cl.initLogger()
+       cl := newTestingClient(t)
        tt := cl.newTorrent(mi.HashInfoBytes(), badStorage{})
        tt.setChunkSize(2)
        require.NoError(t, tt.setInfoBytesLocked(mi.InfoBytes))