Skip to content

test(e2e): close the app in small fake-time steps - #1211

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
test/e2e-close-small-steps
Oct 9, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
test/e2e-close-small-steps

Conversation

@ZhuchkaTriplesix

@ZhuchkaTriplesix ZhuchkaTriplesix commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Why

After #1206 the CI log still showed six database has been locked warnings. Attributed by their test group, all six come from e2e_smoke_test and e2e_command_palette_navigation_test, which both end with E2eAppHarness.close.

close advanced the fake clock in 10 s steps. A database request still waiting on real I/O has its 10 s lock timer due in one such step, so the warning fires even though the app holds no lock.

Change

  • Same 60 s of fake time, now in 100 ms steps, with 5 ms of real time between steps, so a pending request finishes before its timer is due.

Not verified locally

Tests were not run locally, per the project rule. Expected in CI: no database has been locked lines in the smoke and palette suites.

Advancing the fake clock in 10 s steps still fired sqflite's lock warning six
times per run in the smoke and palette suites: a request that waits on real
I/O has its 10 s timer due in one step. The same 60 s now run in 100 ms steps,
with real time between them, so the request finishes before its timer is due.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit ee3f194 into dev Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant