aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.cpp')
-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);