aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index eaaa7ea..6a74548 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -372,12 +372,15 @@ void testMemoryUsage()
auto adminUserKey = databaseCreateResponse->getNodeAdminKeyPair();
database.seed(databaseNode);
+ const char *msg = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
+ const usize msgLength = strlen(msg);
+
const int iterations = 500;
for(int i = 0; i < iterations; ++i)
{
Log::debug("Memory usage test %d/%d", 1 + i, iterations);
- database.addData(databaseNode, *adminUserKey, DataView{ (void*)"hello, world!", 13 });
- this_thread::sleep_for(chrono::milliseconds(50));
+ database.addData(databaseNode, *adminUserKey, DataView{ (void*)msg, msgLength });
+ this_thread::sleep_for(chrono::milliseconds(250));
}
}