fixed bug in web_connection_base when receiving chunked encoding and made sure the unit tests pass
This commit is contained in:
@@ -108,7 +108,7 @@ void test_pex()
|
||||
torrent_status st1;
|
||||
torrent_status st2;
|
||||
torrent_status st3;
|
||||
for (int i = 0; i < 10; ++i)
|
||||
for (int i = 0; i < 15; ++i)
|
||||
{
|
||||
print_alerts(ses1, "ses1");
|
||||
print_alerts(ses2, "ses2");
|
||||
|
@@ -125,11 +125,11 @@ 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);
|
||||
|
||||
test_sleep(500);
|
||||
}
|
||||
|
||||
TEST_CHECK(tor1.status().is_finished);
|
||||
|
Reference in New Issue
Block a user