fix trunk build and tests build without exceptions
This commit is contained in:
@@ -163,13 +163,15 @@ void test_reject_fast()
|
||||
sha1_hash ih = t->info_hash();
|
||||
session ses1(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48900, 49000), "0.0.0.0", 0);
|
||||
error_code ec;
|
||||
ses1.add_torrent(t, "./tmp1_fast", ec);
|
||||
add_torrent_params p;
|
||||
p.ti = t;
|
||||
p.save_path = "./tmp1_fast";
|
||||
ses1.add_torrent(p, ec);
|
||||
|
||||
test_sleep(2000);
|
||||
|
||||
io_service ios;
|
||||
stream_socket s(ios);
|
||||
error_code ec;
|
||||
s.connect(tcp::endpoint(address::from_string("127.0.0.1", ec), ses1.listen_port()), ec);
|
||||
|
||||
char recv_buffer[1000];
|
||||
@@ -220,8 +222,12 @@ void test_respect_suggest()
|
||||
boost::intrusive_ptr<torrent_info> t = ::create_torrent();
|
||||
sha1_hash ih = t->info_hash();
|
||||
session ses1(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48900, 49000), "0.0.0.0", 0);
|
||||
|
||||
error_code ec;
|
||||
ses1.add_torrent(t, "./tmp1_fast", ec);
|
||||
add_torrent_params p;
|
||||
p.ti = t;
|
||||
p.save_path = "./tmp1_fast";
|
||||
ses1.add_torrent(p, ec);
|
||||
|
||||
test_sleep(2000);
|
||||
|
||||
|
Reference in New Issue
Block a user