Skip to content

Commit

Permalink
Merge pull request #1747 from Expensify/cole_fix_db_queries_init
Browse files Browse the repository at this point in the history
Fix initing queries on dbs
  • Loading branch information
flodnv authored May 28, 2024
2 parents 4b6027b + e5bb670 commit 84f4d8f
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 84f4d8f

Please sign in to comment.