aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-15 11:47:39 -0500
committerDeterminant <[email protected]>2018-11-15 11:47:39 -0500
commitd6e9a45639e688cd4d745f610401f74f8ee02011 (patch)
tree0ca5ce5630c6d46601dbf9d8b0e3eae38a7115a7 /test
parent82bd1d81e918cc8a1a46b6c36a81cbba43750bb1 (diff)
use config factory
Diffstat (limited to 'test')
-rw-r--r--test/bench_network.cpp2
-rw-r--r--test/test_network.cpp2
-rw-r--r--test/test_p2p.cpp2
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;