forked from premiere/premiere-libtorrent
Merge pull request #968 from aldenml/test_utp-timeout-1.2
increase timeout in test_utp
This commit is contained in:
commit
96203f3f6f
|
@ -43,7 +43,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "test.hpp"
|
#include "test.hpp"
|
||||||
#include "setup_transfer.hpp"
|
#include "setup_transfer.hpp"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
namespace lt = libtorrent;
|
namespace lt = libtorrent;
|
||||||
|
@ -105,7 +104,7 @@ void test_transfer()
|
||||||
std::tie(tor1, tor2, ignore) = setup_transfer(&ses1, &ses2, nullptr
|
std::tie(tor1, tor2, ignore) = setup_transfer(&ses1, &ses2, nullptr
|
||||||
, true, false, true, "_utp", 0, &t, false, &atp);
|
, true, false, true, "_utp", 0, &t, false, &atp);
|
||||||
|
|
||||||
const int timeout = 8;
|
const int timeout = 16;
|
||||||
|
|
||||||
for (int i = 0; i < timeout; ++i)
|
for (int i = 0; i < timeout; ++i)
|
||||||
{
|
{
|
||||||
|
@ -144,4 +143,3 @@ TORRENT_TEST(utp)
|
||||||
remove_all("./tmp1_utp", ec);
|
remove_all("./tmp1_utp", ec);
|
||||||
remove_all("./tmp2_utp", ec);
|
remove_all("./tmp2_utp", ec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue