make test_swarm test with a smaller torrent, making the test complete faster
This commit is contained in:
parent
93cd697d8f
commit
89b6c51725
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue