From 4ecccb6fea0505dbb00aba2405e73ddb5b321d51 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 30 Jul 2013 07:13:12 +0000 Subject: [PATCH] fix test_ssl and test_transfer --- test/test_ssl.cpp | 2 +- test/test_transfer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_ssl.cpp b/test/test_ssl.cpp index a7e2f13a0..3d1172694 100644 --- a/test/test_ssl.cpp +++ b/test/test_ssl.cpp @@ -179,7 +179,7 @@ void test_ssl(int test_idx) TEST_CHECK(st1.state == torrent_status::seeding || st1.state == torrent_status::checking_files); TEST_CHECK(st2.state == torrent_status::downloading - || st2.state == torrent_status::checking_files); + || st2.state == torrent_status::checking_resume_data); test_sleep(100); } diff --git a/test/test_transfer.cpp b/test/test_transfer.cpp index f61f638c0..0cfe07766 100644 --- a/test/test_transfer.cpp +++ b/test/test_transfer.cpp @@ -414,7 +414,7 @@ void test_transfer(int proxy_type, bool test_disk_full = false, bool test_allowe TEST_CHECK(st1.state == torrent_status::seeding || st1.state == torrent_status::checking_files); TEST_CHECK(st2.state == torrent_status::downloading - || st2.state == torrent_status::checking_files + || st2.state == torrent_status::checking_resume_data || (test_disk_full && !st2.error.empty())); if (peer_disconnects == 2) break;