From 6a824ba2dfd3fb37a785a78d5e11b4746a98f6e8 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 22 Mar 2014 09:03:59 +0000 Subject: [PATCH] polish test_remap_files --- test/test_remap_files.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_remap_files.cpp b/test/test_remap_files.cpp index b50a4dc01..83a5a2a0c 100644 --- a/test/test_remap_files.cpp +++ b/test/test_remap_files.cpp @@ -408,8 +408,11 @@ void test_remap_files_prio(storage_mode_t storage_mode = storage_mode_sparse) file_prio[0] = 0; tor2.prioritize_files(file_prio); - tor1.resume(); + // torrent1 will attempt to connect to torrent2 + // make sure torrent2 is up and running by then tor2.resume(); + test_sleep(500); + tor1.resume(); fprintf(stderr, "\ntesting remap scatter prio\n\n");