make test_utp more likely to pass
This commit is contained in:
@@ -107,6 +107,8 @@ void test_transfer()
|
|||||||
print_alerts(ses1, "ses1", true, true, true);
|
print_alerts(ses1, "ses1", true, true, true);
|
||||||
print_alerts(ses2, "ses2", true, true, true);
|
print_alerts(ses2, "ses2", true, true, true);
|
||||||
|
|
||||||
|
test_sleep(500);
|
||||||
|
|
||||||
torrent_status st1 = tor1.status();
|
torrent_status st1 = tor1.status();
|
||||||
torrent_status st2 = tor2.status();
|
torrent_status st2 = tor2.status();
|
||||||
|
|
||||||
@@ -125,8 +127,6 @@ void test_transfer()
|
|||||||
|
|
||||||
if (st2.is_finished) break;
|
if (st2.is_finished) break;
|
||||||
|
|
||||||
test_sleep(500);
|
|
||||||
|
|
||||||
TEST_CHECK(st1.state == torrent_status::seeding
|
TEST_CHECK(st1.state == torrent_status::seeding
|
||||||
|| st1.state == torrent_status::checking_files);
|
|| st1.state == torrent_status::checking_files);
|
||||||
TEST_CHECK(st2.state == torrent_status::downloading);
|
TEST_CHECK(st2.state == torrent_status::downloading);
|
||||||
|
Reference in New Issue
Block a user