fixed bug in web_connection_base when receiving chunked encoding and made sure the unit tests pass

This commit is contained in:
Arvid Norberg
2011-03-24 16:46:26 +00:00
parent 929c31a757
commit 7e07f7469f
7 changed files with 15 additions and 8 deletions

View File

@@ -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");

View File

@@ -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);