make test_utp more likely to pass

This commit is contained in:
Arvid Norberg 2012-04-28 14:56:34 +00:00
parent 5583ed407a
commit f7c6d9ce6c
1 changed files with 2 additions and 2 deletions

View File

@ -107,6 +107,8 @@ void test_transfer()
print_alerts(ses1, "ses1", true, true, true);
print_alerts(ses2, "ses2", true, true, true);
test_sleep(500);
torrent_status st1 = tor1.status();
torrent_status st2 = tor2.status();
@ -125,8 +127,6 @@ void test_transfer()
if (st2.is_finished) break;
test_sleep(500);
TEST_CHECK(st1.state == torrent_status::seeding
|| st1.state == torrent_status::checking_files);
TEST_CHECK(st2.state == torrent_status::downloading);