1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 14:10:34 +00:00

Fix up rename test to avoid random duplicate torrent failures

This commit is contained in:
Mike Gelfand 2016-12-24 21:24:50 +03:00
parent b33eb816ba
commit 3cda09ea81

View file

@ -435,15 +435,19 @@ test_multifile_torrent (void)
testFileExistsAndConsistsOfThisString (tor, i, expected_contents[i]);
}
tr_ctorFree (ctor);
tr_torrentRemove (tor, false, NULL);
do
{
tr_wait_msec (10);
}
while (tr_sessionCountTorrents (session) > 0);
/**
*** Test renaming prefixes (shouldn't work)
**/
tr_ctorFree (ctor);
tr_torrentRemove (tor, false, NULL);
do {
tr_wait_msec (10);
} while (0);
ctor = tr_ctorNew (session);
tor = create_torrent_from_base64_metainfo (ctor,
"ZDEwOmNyZWF0ZWQgYnkyNTpUcmFuc21pc3Npb24vMi42MSAoMTM0MDcpMTM6Y3JlYXRpb24gZGF0"