From fbbdc46e19703a359979a74ea5dcc20b9413fc05 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 28 Dec 2010 02:55:46 +0000 Subject: [PATCH] make the utp test pass with full invariant checks enabled --- test/test_utp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_utp.cpp b/test/test_utp.cpp index 22ec980a4..8909372d3 100644 --- a/test/test_utp.cpp +++ b/test/test_utp.cpp @@ -91,7 +91,7 @@ void test_transfer() create_directory("./tmp1_utp", ec); std::ofstream file("./tmp1_utp/temporary"); - boost::intrusive_ptr t = ::create_torrent(&file, 16 * 1024, 1000, false); + boost::intrusive_ptr t = ::create_torrent(&file, 512 * 1024, 20, false); file.close(); // for performance testing @@ -100,7 +100,7 @@ void test_transfer() // test using piece sizes smaller than 16kB boost::tie(tor1, tor2, ignore) = setup_transfer(&ses1, &ses2, 0 - , true, false, true, "_utp", 8 * 1024, &t, false, &atp); + , true, false, true, "_utp", 0, &t, false, &atp); for (int i = 0; i < 300; ++i) {