Skip to content

Commit

Permalink
fixup! test: sqlite, add coverage for dangling to-be-reverted db txns
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Mar 14, 2024
1 parent 6a91380 commit ff0e6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/test/db_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class DbExecBlocker : public SQliteExecHandler
public:
DbExecBlocker(std::set<std::string> blocked_statements) : m_blocked_statements(blocked_statements) {}
int Exec(SQLiteDatabase& database, const std::string& statement) override {
if (m_blocked_statements.contains(statement)) return TEST_SQLITE_ERROR;
if (m_blocked_statements.count(statement)) return TEST_SQLITE_ERROR;
return m_base_exec.Exec(database, statement);
}
};
Expand Down

0 comments on commit ff0e6a5

Please sign in to comment.