diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-04-07 20:55:09 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-04-12 19:29:03 -0400 |
commit | 41f891da508114f1fd4df30b4068073ec30abc2a (patch) | |
tree | 1b3e171dfbc7eadf4d503659e4c973dcc93c3d9d /src/dummywallet.cpp | |
parent | cb79cabdd9d9a6d183cf09575dd46925f2c9cb3b (diff) |
tests: Skip SQLite fsyncs while testing
Since we want tests to run quickly, and since tests do a lot more db
operations than expected we expect to see in actual usage, we disable
sqlite's syncing behavior to make db operations run much faster. This
syncing behavior is necessary for normal operation as it helps guarantee
that data won't become lost or corrupted, but in tests, we don't care
about that.
Diffstat (limited to 'src/dummywallet.cpp')
-rw-r--r-- | src/dummywallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dummywallet.cpp b/src/dummywallet.cpp index bb06c95e7d..95886d3138 100644 --- a/src/dummywallet.cpp +++ b/src/dummywallet.cpp @@ -50,6 +50,7 @@ void DummyWalletInit::AddWalletOptions(ArgsManager& argsman) const "-flushwallet", "-privdb", "-walletrejectlongchains", + "-unsafesqlitesync", }); } |