From b94a13f94a84aaaf8cd25356df6a94dbea969ec1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 6 Oct 2013 17:03:59 +0000 Subject: [PATCH] fail web seed tests quicker --- test/web_seed_suite.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/web_seed_suite.cpp b/test/web_seed_suite.cpp index 7730207b9..e852aabdb 100644 --- a/test/web_seed_suite.cpp +++ b/test/web_seed_suite.cpp @@ -155,7 +155,9 @@ static void test_transfer(session& ses, boost::intrusive_ptr torre break; } -// if (test_ban && peer_disconnects >= 1) break; + // if the web seed connection is disconnected, we're going to fail + // the test. make sure to do so quickly + if (peer_disconnects >= 1) break; if (s.is_seeding /* && ss.download_rate == 0.f*/) {