The root cause was a 2nd `context.Context()` that was used in `constructTestJob()`, which cancelled when that function returned. The cancellation of the context caused an interrupt in the SQLite driver, which got into a race condition and could cause an interrupt on a subsequent database query.