From 769e407f6a5edb6e2fd261f9abfd90f2f9883874 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 29 Aug 2015 17:13:40 -0400 Subject: [PATCH] fix tracker test --- test/test_tracker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_tracker.cpp b/test/test_tracker.cpp index 4c0e7462f..403177be6 100644 --- a/test/test_tracker.cpp +++ b/test/test_tracker.cpp @@ -470,7 +470,8 @@ TORRENT_TEST(try_next) TEST_EQUAL(tr[1].fails, 1); TEST_EQUAL(tr[1].verified, false); - TEST_EQUAL(tr[1].last_error, boost::asio::error::timed_out); + TEST_CHECK(tr[1].last_error == boost::asio::error::timed_out + || tr[1].last_error == boost::asio::error::connection_refused); TEST_EQUAL(tr[2].fails, 0); TEST_EQUAL(tr[2].verified, true);