From 81a88a774f22ee0862f7aab38370036f8e2d8ba7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 20 Jul 2008 17:39:28 +0000 Subject: [PATCH] test_swarm fixes --- test/test_swarm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_swarm.cpp b/test/test_swarm.cpp index 8528aa0a9..a63fcf1b7 100644 --- a/test/test_swarm.cpp +++ b/test/test_swarm.cpp @@ -52,10 +52,6 @@ void test_swarm() session ses2(fingerprint("LT", 0, 1, 0, 0), std::make_pair(49000, 50000)); session ses3(fingerprint("LT", 0, 1, 0, 0), std::make_pair(50000, 51000)); - ses1.set_alert_mask(alert::all_categories); - ses2.set_alert_mask(alert::all_categories); - ses3.set_alert_mask(alert::all_categories); - // this is to avoid everything finish from a single peer // immediately. To make the swarm actually connect all // three peers before finishing. @@ -89,6 +85,10 @@ void test_swarm() // test using piece sizes smaller than 16kB boost::tie(tor1, tor2, tor3) = setup_transfer(&ses1, &ses2, &ses3, true, false, true, "_swarm", 8 * 1024); + ses1.set_alert_mask(alert::all_categories & ~alert::progress_notification); + ses2.set_alert_mask(alert::all_categories & ~alert::progress_notification); + ses3.set_alert_mask(alert::all_categories & ~alert::progress_notification); + float sum_dl_rate2 = 0.f; float sum_dl_rate3 = 0.f; int count_dl_rates2 = 0;