valgrind unit test polish

This commit is contained in:
Arvid Norberg
2013-10-14 08:15:08 +00:00
parent 5388f0af74
commit 65475d54a6
2 changed files with 18 additions and 2 deletions

View File

@@ -146,7 +146,14 @@ void test_proxy(proxy_settings::proxy_type proxy_type, int flags)
h.connect_peer(tcp::endpoint(address_v4::from_string("127.0.0.1"), peer_port));
rejected_trackers.clear();
for (int i = 0; i < 15; ++i)
#ifdef TORRENT_USE_VALGRIND
const int timeout = 90;
#else
const int timeout = 15;
#endif
for (int i = 0; i < timeout; ++i)
{
print_alerts(*s, "s", false, false, false, &alert_predicate);
test_sleep(100);