aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-14 22:25:26 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-14 22:25:29 +0200
commit2260790118358449a18527fcd9e6ff46d2caccf7 (patch)
tree9bc70e9bedc290ad4f147f5bf8f23e29b40794a0 /tests
parent7d675a45023e44cfa03d7fa95e4ec20e3a1c2fb9 (diff)
Implement node load/fetch order
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 0174384..07e7131 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);
+ database.seed(databaseNode, DatabaseFetchOrder::NEWEST_FIRST);
this_thread::sleep_for(chrono::seconds(3));
assertEquals(1, createNodeCounter);
@@ -210,7 +210,7 @@ int main()
Database database("bootstrap.ring.cx", 4222, storagePath, callbackFuncs);
database.loadNode(*databaseNode.getRequestHash());
- database.seed(databaseNode);
+ database.seed(databaseNode, DatabaseFetchOrder::NEWEST_FIRST);
this_thread::sleep_for(chrono::seconds(3));
assertEquals(1, createNodeCounter);