Skip to content

Commit

Permalink
Update test that uses non-dertministic function
Browse files Browse the repository at this point in the history
  • Loading branch information
coleaeason committed Dec 12, 2024
1 parent 88577f4 commit 5e18907
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/tests/WriteTest.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <libstuff/SData.h>
#include <libstuff/SRandom.h>
#include <test/lib/BedrockTester.h>

struct WriteTest : tpunit::TestFixture {
Expand Down Expand Up @@ -38,7 +39,8 @@ struct WriteTest : tpunit::TestFixture {
for (int i = 0; i < 50; i++) {
SData query("Query");
query["writeConsistency"] = "ASYNC";
query["query"] = "INSERT INTO foo VALUES ( RANDOM() );";
uint64_t rand = SRandom::rand64();
query["query"] = "INSERT INTO foo VALUES (" + to_string(rand) + ");";
tester->executeWaitVerifyContent(query);
}

Expand Down

0 comments on commit 5e18907

Please sign in to comment.