From e4e46241a852b2c82896c374eab335ae239bd0b9 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sun, 14 Jun 2015 16:41:32 -0400 Subject: [PATCH] fix reliability of swarm tests --- test/Jamfile | 6 +++--- test/swarm_suite.cpp | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/Jamfile b/test/Jamfile index 5141929f4..90784ffb6 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -178,12 +178,12 @@ test-suite libtorrent : [ run test_trackers_extension.cpp ] [ run test_time_critical.cpp ] [ run test_pex.cpp ] + [ run test_priority.cpp ] + [ run test_swarm.cpp ] + [ run test_super_seeding.cpp ] # make these test more reliable # [ run test_upnp.cpp ] # [ run test_lsd.cpp ] -# [ run test_priority.cpp ] -# [ run test_swarm.cpp ] -# [ run test_super_seeding.cpp ] ; diff --git a/test/swarm_suite.cpp b/test/swarm_suite.cpp index d0a986e3b..eb7dcdf22 100644 --- a/test/swarm_suite.cpp +++ b/test/swarm_suite.cpp @@ -111,11 +111,12 @@ void test_swarm(int flags) lt::session ses1(pack); - ses1.apply_settings(pack); - + pack.set_str(settings_pack::listen_interfaces, "0.0.0.0:49000"); pack.set_int(settings_pack::download_rate_limit, rate_limit / 2); pack.set_int(settings_pack::upload_rate_limit, rate_limit); lt::session ses2(pack); + + pack.set_str(settings_pack::listen_interfaces, "0.0.0.0:50000"); lt::session ses3(pack); torrent_handle tor1;