aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-17 01:23:05 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit8bc307024e1331811ccdea34d4eb5eb737b7c891 (patch)
tree0779386c62c98bf3b30565cc9db9486308b1c5a6 /tests
parent8015d182a7b58642cc253956e885c746c49d8d60 (diff)
Fix bug where addData/addUser doesn't get send to listening peers
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index e4438e7..5d527fe 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -193,7 +193,7 @@ int main()
database.addUser(databaseNode, *adminUserKey, localUserKeyPair.getPublicKey(), databaseCreateResponse->getNodeAdminGroupId()->getView());
database.addData(databaseNode, localUserKeyPair, DataView{ (void*)"hello, aaald!", 13 });
- database.seed(databaseNode, DatabaseFetchOrder::NEWEST_FIRST);
+ database.seed(databaseNode, DatabaseFetchOrder::OLDEST_FIRST);
this_thread::sleep_for(chrono::seconds(3));
assertEquals(1, createNodeCounter);
@@ -263,7 +263,7 @@ int main()
Database database("bootstrap.ring.cx", 4222, storagePath, callbackFuncs);
database.loadNode(*databaseNode.getRequestHash());
- database.seed(databaseNode, DatabaseFetchOrder::NEWEST_FIRST);
+ database.seed(databaseNode, DatabaseFetchOrder::OLDEST_FIRST);
this_thread::sleep_for(chrono::seconds(3));
assertEquals(1, createNodeCounter);