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:
parent
b33eb816ba
commit
3cda09ea81
1 changed files with 9 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue