From 93f9d4b3b0c006d2865f7a5c6ae221499aa0fa55 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 1 Aug 2013 08:03:11 +0000 Subject: [PATCH] test fixing --- test/test_storage.cpp | 2 +- test/test_transfer.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_storage.cpp b/test/test_storage.cpp index 93fa14a5e..6152a66e9 100644 --- a/test/test_storage.cpp +++ b/test/test_storage.cpp @@ -61,7 +61,7 @@ char* piece3 = page_aligned_allocator::malloc(piece_size); void signal_bool(bool* b, char const* string) { *b = true; - std::cerr << string << std::endl; + std::cerr << time_now_string() << " " << string << std::endl; } void on_read_piece(int ret, disk_io_job const& j, char const* data, int size) diff --git a/test/test_transfer.cpp b/test/test_transfer.cpp index a048f0243..5509de180 100644 --- a/test/test_transfer.cpp +++ b/test/test_transfer.cpp @@ -95,7 +95,7 @@ void test_rate() ptime start = time_now(); - for (int i = 0; i < 50; ++i) + for (int i = 0; i < 70; ++i) { print_alerts(ses1, "ses1", true, true, true, &predicate); print_alerts(ses2, "ses2", true, true, true, &predicate); @@ -120,7 +120,6 @@ void test_rate() std::cerr << "average download rate: " << (t->total_size() / (std::max)(total_milliseconds(dt), 1)) << " kB/s" << std::endl; - } void print_alert(std::auto_ptr)