sqlite: Use in-memory db instead of temp for mockdb

The mock db can be in-memory rather than just at temp file.
This commit is contained in:
Andrew Chow
2022-04-20 13:51:53 -04:00
parent a1080802f8
commit 49910f255f

View File

@@ -1203,7 +1203,7 @@ std::unique_ptr<WalletDatabase> CreateMockWalletDatabase(DatabaseOptions& option
if (format == DatabaseFormat::SQLITE) {
#ifdef USE_SQLITE
return std::make_unique<SQLiteDatabase>("", "", options, true);
return std::make_unique<SQLiteDatabase>(":memory:", "", options, true);
#endif
assert(false);
}