optimize some invariant checks and make test_utp shorted, to complete much faster

This commit is contained in:
Arvid Norberg
2013-10-20 06:03:23 +00:00
parent a8ac369584
commit 416d064489
4 changed files with 16 additions and 21 deletions

View File

@@ -100,7 +100,7 @@ void test_transfer()
create_directory("./tmp1_utp", ec);
std::ofstream file("./tmp1_utp/temporary");
boost::intrusive_ptr<torrent_info> t = ::create_torrent(&file, 512 * 1024, 20, false);
boost::intrusive_ptr<torrent_info> t = ::create_torrent(&file, 128 * 1024, 6, false);
file.close();
// for performance testing