summary refs log tree commit diff
path: root/changelog.d/11702.misc
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-01-07 19:13:41 +0000
committerGitHub <noreply@github.com>2022-01-07 19:13:41 +0000
commitd3cf0730f8bf3de58d37060eff0dca3f69b4a0e1 (patch)
treefa88069fc6f9da3044b11e0c94b600339d4f90b5 /changelog.d/11702.misc
parentTest that bans win a join against a race when computing `/sync` response (#1... (diff)
downloadsynapse-d3cf0730f8bf3de58d37060eff0dca3f69b4a0e1.tar.xz
Optionally use an on-disk sqlite db in tests (#11702)
* Optionally use an on-disk sqlite db in tests

When debugging a test it is sometimes useful to inspect the state of the
DB. This is not easy when the db is in-memory: one cannot attach the
sqlite CLI to another process's DB.

With this change, if SYNAPSE_TEST_PERSIST_SQLITE_DB is set, we use
 `_trial_temp/test.db` as our sqlite database. One can then use 
`sqlite3 _trial_temp/test.db` and query to your heart's content.

The DB is destroyed and recreated between different test cases.

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'changelog.d/11702.misc')
-rw-r--r--changelog.d/11702.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/11702.misc b/changelog.d/11702.misc
new file mode 100644
index 0000000000..fc1069cae0
--- /dev/null
+++ b/changelog.d/11702.misc
@@ -0,0 +1 @@
+Add the option to write sqlite test dbs to disk when running tests.
\ No newline at end of file