From b4c3c40380d46f23ff8c6bfa08cc8e7947baa6b0 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 27 Jun 2015 16:16:14 -0400 Subject: [PATCH] simplify settings in test_priority.cpp --- test/test_priority.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/test/test_priority.cpp b/test/test_priority.cpp index cc4bd5076..81738aab4 100644 --- a/test/test_priority.cpp +++ b/test/test_priority.cpp @@ -83,14 +83,6 @@ void test_transfer(settings_pack const& sett) cleanup(); settings_pack pack = sett; - pack.set_str(settings_pack::listen_interfaces, "0.0.0.0:48075"); - pack.set_int(settings_pack::alert_mask, mask); - - lt::session ses1(pack); - - pack.set_str(settings_pack::listen_interfaces, "0.0.0.0:49075"); - pack.set_int(settings_pack::alert_mask, mask); - lt::session ses2(pack); // we need a short reconnect time since we // finish the torrent and then restart it @@ -113,8 +105,14 @@ void test_transfer(settings_pack const& sett) pack.set_bool(settings_pack::enable_lsd, false); pack.set_bool(settings_pack::enable_dht, false); - ses1.apply_settings(pack); - ses2.apply_settings(pack); + pack.set_str(settings_pack::listen_interfaces, "0.0.0.0:48075"); + pack.set_int(settings_pack::alert_mask, mask); + + lt::session ses1(pack); + + pack.set_str(settings_pack::listen_interfaces, "0.0.0.0:49075"); + pack.set_int(settings_pack::alert_mask, mask); + lt::session ses2(pack); torrent_handle tor1; torrent_handle tor2;