fixed web seed unit test and cleaned up the RC_0_15 fix

This commit is contained in:
Arvid Norberg 2010-06-23 03:19:48 +00:00
parent 06190d8920
commit 5bda58d230
1 changed files with 4 additions and 2 deletions

View File

@ -118,10 +118,12 @@ void test_transfer(boost::intrusive_ptr<torrent_info> torrent_file, int proxy, i
if (th.is_seed()/* && ss.download_rate == 0.f*/) if (th.is_seed()/* && ss.download_rate == 0.f*/)
{ {
TEST_EQUAL(th.status().total_payload_download, total_size); torrent_status st = th.status();
TEST_EQUAL(st.total_payload_download - st.total_redundant_bytes, total_size);
// we need to sleep here a bit to let the session sync with the torrent stats // we need to sleep here a bit to let the session sync with the torrent stats
test_sleep(1000); test_sleep(1000);
TEST_EQUAL(ses.status().total_payload_download, total_size); TEST_EQUAL(ses.status().total_payload_download - ses.status().total_redundant_bytes
, total_size);
break; break;
} }
test_sleep(500); test_sleep(500);