From 87eb9458113bc46bef265bed6731d8d28ffbaf30 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 15 May 2009 22:36:44 +0000 Subject: [PATCH] fixed auto unchoke test --- test/test_auto_unchoke.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_auto_unchoke.cpp b/test/test_auto_unchoke.cpp index 778a40afe..85a18565e 100644 --- a/test/test_auto_unchoke.cpp +++ b/test/test_auto_unchoke.cpp @@ -68,6 +68,7 @@ void test_swarm() print_alerts(ses3, "ses3"); st = ses1.status(); + std::cerr << st.allowed_upload_slots << " "; if (st.allowed_upload_slots >= 2) break; torrent_status st1 = tor1.status(); @@ -90,7 +91,7 @@ void test_swarm() test_sleep(1000); } - TEST_CHECK(st.allowed_upload_slots == 2); + TEST_CHECK(st.allowed_upload_slots >= 2); // make sure the files are deleted ses1.remove_torrent(tor1, session::delete_files);