fix reliability of swarm tests

This commit is contained in:
arvidn 2015-06-14 16:41:32 -04:00
parent 5cb095f6d2
commit e4e46241a8
2 changed files with 6 additions and 5 deletions

View File

@ -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 ]
;

View File

@ -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;