aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-10-19 23:01:52 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-10-19 23:03:20 +0200
commit54254462e432dcc6ef2bb306a9ee773d21314d19 (patch)
tree3334799426ba0186829de1bbffe0500a64331c31 /tests
parent3565289c19974ca874f87429cc74a87558249c8e (diff)
Retry put for 30 sec to wait for peer connections
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 2d1d505..d6c37e2 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -36,12 +36,10 @@ int main()
gotAsdf2 = true;
return true;
});
- // wait until connection1 and connection2 receive each other as peers from bootstrap node
- std::this_thread::sleep_for(std::chrono::seconds(3));
-
+
connection1.put(key, "hello", 5);
- connection1.put(key, "asdf", 4);
- std::this_thread::sleep_for(std::chrono::seconds(3));
+ connection2.put(key, "asdf", 4);
+ std::this_thread::sleep_for(std::chrono::seconds(6));
REQUIRE(gotData1);
REQUIRE(gotAsdf1);