From fa8d14018891d90e23fce0e510a01728970932f2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 14 May 2018 22:25:26 +0200 Subject: Implement node load/fetch order --- tests/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3