attempt to fix tracker test on windows

This commit is contained in:
arvidn 2015-08-29 19:43:27 -04:00
parent 0ee4e46b49
commit d5f9f613ef
1 changed files with 5 additions and 1 deletions

View File

@ -472,7 +472,11 @@ TORRENT_TEST(try_next)
TEST_EQUAL(tr[1].fails, 1);
TEST_EQUAL(tr[1].verified, false);
TEST_CHECK(tr[1].last_error == boost::asio::error::timed_out
|| tr[1].last_error == boost::system::error_condition(boost::system::errc::connection_refused));
|| tr[1].last_error == boost::system::error_condition(boost::system::errc::connection_refused)
#ifdef TORRENT_WINDOWS
|| tr[1].last_error == boost::system::error_code(boost::system::system_category(), ERROR_CONNECTION_REFUSED)
#endif
);
TEST_EQUAL(tr[2].fails, 0);
TEST_EQUAL(tr[2].verified, true);