make test_swarm test with a smaller torrent, making the test complete faster

This commit is contained in:
Arvid Norberg 2013-09-17 09:33:42 +00:00
parent 93cd697d8f
commit 89b6c51725
2 changed files with 2 additions and 2 deletions

View File

@ -530,7 +530,7 @@ setup_transfer(session* ses1, session* ses2, session* ses3
error_code ec;
create_directory("tmp1" + suffix, ec);
std::ofstream file(combine_path("tmp1" + suffix, "temporary").c_str());
t = ::create_torrent(&file, piece_size, 19, true);
t = ::create_torrent(&file, piece_size, 9, true);
file.close();
if (clear_files)
{

View File

@ -98,7 +98,7 @@ void test_swarm(bool super_seeding = false, bool strict = false, bool seed_mode
p.flags |= add_torrent_params::flag_seed_mode;
// test using piece sizes smaller than 16kB
boost::tie(tor1, tor2, tor3) = setup_transfer(&ses1, &ses2, &ses3, true
, false, true, "_swarm", 32 * 1024, 0, super_seeding, &p);
, false, true, "_swarm", 8 * 1024, 0, super_seeding, &p);
int mask = alert::all_categories & ~(alert::progress_notification | alert::performance_warning | alert::stats_notification);
ses1.set_alert_mask(mask);