diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/bench_network.cpp | 2 | ||||
-rw-r--r-- | test/test_network.cpp | 2 | ||||
-rw-r--r-- | test/test_p2p.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/bench_network.cpp b/test/bench_network.cpp index 40ba17a..d63d377 100644 --- a/test/bench_network.cpp +++ b/test/bench_network.cpp @@ -79,7 +79,7 @@ struct MyNet: public MsgNetworkByteOp { const std::string name, const NetAddr &peer, double stat_timeout = -1): - MsgNetwork<opcode_t>(ec, 10, 1.0, 4096), + MsgNetworkByteOp(ec, MsgNetworkByteOp::Config()), name(name), peer(peer), ev_period_stat(ec, -1, [this, stat_timeout](int, short) { diff --git a/test/test_network.cpp b/test/test_network.cpp index d52b6c2..e439bca 100644 --- a/test/test_network.cpp +++ b/test/test_network.cpp @@ -82,7 +82,7 @@ struct MyNet: public MsgNetworkByteOp { MyNet(const salticidae::EventContext &ec, const std::string name, const NetAddr &peer): - MsgNetwork<uint8_t>(ec, 10, 1.0, 4096), + MsgNetwork<uint8_t>(ec, MsgNetwork::Config()), name(name), peer(peer) { /* message handler could be a bound method */ diff --git a/test/test_p2p.cpp b/test/test_p2p.cpp index 99c28a0..1c37aa6 100644 --- a/test/test_p2p.cpp +++ b/test/test_p2p.cpp @@ -92,7 +92,7 @@ int main(int argc, char **argv) { salticidae::EventContext ec; /* test two nodes */ - MyNet net(ec, 10, 2, 2, 4096, 3, 5); + MyNet net(ec, MyNet::Config().conn_timeout(5).ping_period(2)); try { int i; |