disable irrelevant features in test_checking

This commit is contained in:
arvidn 2015-07-28 08:04:51 -04:00
parent 7780cb2699
commit 580519fc19
2 changed files with 4 additions and 3 deletions

View File

@ -104,9 +104,6 @@ session_proxy test_proxy(settings_pack::proxy_type_t proxy_type, int flags)
sett.set_int(settings_pack::stop_tracker_timeout, 2); sett.set_int(settings_pack::stop_tracker_timeout, 2);
sett.set_int(settings_pack::tracker_completion_timeout, 2); sett.set_int(settings_pack::tracker_completion_timeout, 2);
sett.set_int(settings_pack::tracker_receive_timeout, 2); sett.set_int(settings_pack::tracker_receive_timeout, 2);
#ifndef TORRENT_NO_DEPRECATE
sett.set_int(settings_pack::half_open_limit, 2);
#endif
sett.set_bool(settings_pack::announce_to_all_trackers, true); sett.set_bool(settings_pack::announce_to_all_trackers, true);
sett.set_bool(settings_pack::announce_to_all_tiers, true); sett.set_bool(settings_pack::announce_to_all_tiers, true);
sett.set_bool(settings_pack::force_proxy, flags & force_proxy_mode); sett.set_bool(settings_pack::force_proxy, flags & force_proxy_mode);

View File

@ -72,6 +72,10 @@ TORRENT_TEST(recheck)
settings_pack sett; settings_pack sett;
sett.set_str(settings_pack::listen_interfaces, "0.0.0.0:48675"); sett.set_str(settings_pack::listen_interfaces, "0.0.0.0:48675");
sett.set_int(settings_pack::alert_mask, mask); sett.set_int(settings_pack::alert_mask, mask);
sett.set_bool(settings_pack::enable_upnp, false);
sett.set_bool(settings_pack::enable_natpmp, false);
sett.set_bool(settings_pack::enable_lsd, false);
sett.set_bool(settings_pack::enable_dht, false);
lt::session ses1(sett); lt::session ses1(sett);
create_directory("tmp1_recheck", ec); create_directory("tmp1_recheck", ec);
if (ec) fprintf(stderr, "create_directory: %s\n", ec.message().c_str()); if (ec) fprintf(stderr, "create_directory: %s\n", ec.message().c_str());