mirror of
https://github.com/pi-hole/FTL.git
synced 2026-08-21 12:17:32 +01:00
`sqlite3_busy_handler()` is a property of the connection, so arming it during a write also let a DNS lookup on the shared connection wait. Open a connection for the write instead, the way `gravity_updated()` already does for its read, and leave the shared one exactly as it is. The test now waits for the reader to signal that it holds the lock, and requires the write to have taken measurably longer than a free one, so it cannot pass without exercising the wait. Signed-off-by: 010011110 <duckenheim@posteo.de>