From 5bda58d2309cf66dbe6ad3b6583531271cd5acdb Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 23 Jun 2010 03:19:48 +0000 Subject: [PATCH] fixed web seed unit test and cleaned up the RC_0_15 fix --- test/test_web_seed.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_web_seed.cpp b/test/test_web_seed.cpp index 32b970646..97cb6eda8 100644 --- a/test/test_web_seed.cpp +++ b/test/test_web_seed.cpp @@ -118,10 +118,12 @@ void test_transfer(boost::intrusive_ptr torrent_file, int proxy, i 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 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; } test_sleep(500);