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 committed 2022-05-10 11:54:02 -04:00
1 parent a1080802f8
commit 49910f255f
1 file changed
+1 -1
+1 -1
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);
}