mtlynch / whatgotdone

A tool for sharing weekly task updates with teammates.
https://whatgotdone.com
Apache License 2.0
143 stars 14 forks source link

Change tests to use SQLite in-memory with a shared cache #804

Closed mtlynch closed 1 year ago

mtlynch commented 2 years ago

There's a race condition documented in the mattn/gosqlite driver where multiple clients of the DB pool can get separate copies of the database and have distinct views. Using a shared cache works around this issue.