Skip to content

Commit

Permalink
Fix initing queries on dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
coleaeason committed May 24, 2024
1 parent 4b6027b commit e5bb670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lib/BedrockTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ BedrockTester::BedrockTester(const map<string, string>& args,
if (!SFileExists(_args["-db"])) {
SFileSave(_args["-db"], "");
}

// Run any supplied queries on the DB.
// We don't use SQLite here, because we specifically want to avoid dealing with journal tables.
if (queries.size()) {
sqlite3* db;
sqlite3_initialize();
string completeFilename = dbFileName;
string completeFilename = _args["-db"];
if (ENABLE_HCTREE) {
completeFilename = "file://" + completeFilename + "?hctree=1";
}
Expand Down Expand Up @@ -378,7 +378,7 @@ vector<SData> BedrockTester::executeWaitMultipleData(vector<SData> requests, int
usleep(100'000);
continue;
}

// Socket is successfully created. We can exit this loop.
break;
}
Expand Down

0 comments on commit e5bb670

Please sign in to comment.