Skip to content

Fix flaky TmpDir cleanup tests by removing race condition#101

Merged
ericmj merged 1 commit intomainfrom
ericmj/fix-flaky-tmp-dir-test
Mar 19, 2026
Merged

Fix flaky TmpDir cleanup tests by removing race condition#101
ericmj merged 1 commit intomainfrom
ericmj/fix-flaky-tmp-dir-test

Conversation

@ericmj
Copy link
Member

@ericmj ericmj commented Mar 19, 2026

Change monitoring from async cast to sync call so the monitor is always set up before track/1 returns. Replace Process.sleep with deterministic await that waits for task death then flushes the GenServer mailbox.

Change monitoring from async cast to sync call so the monitor is always
set up before track/1 returns. Replace Process.sleep with deterministic
await that waits for task death then flushes the GenServer mailbox.
@ericmj ericmj merged commit 387eb47 into main Mar 19, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/fix-flaky-tmp-dir-test branch March 19, 2026 18:22
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