Skip to content

Add TmpDir.await_cleanup/1 for reliable test synchronization#133

Merged
ericmj merged 2 commits intomainfrom
ericmj/tmpdir-await-cleanup
Mar 29, 2026
Merged

Add TmpDir.await_cleanup/1 for reliable test synchronization#133
ericmj merged 2 commits intomainfrom
ericmj/tmpdir-await-cleanup

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Mar 29, 2026

Add a GenServer call that waits for cleanup to complete after a monitored process exits. If the process is still monitored, the reply is deferred until the :DOWN message is processed. This eliminates the race condition where :DOWN delivery to the GenServer could be delayed.

ericmj added 2 commits March 29, 2026 19:36
Add a GenServer call that waits for cleanup to complete after a
monitored process exits. If the process is still monitored, the
reply is deferred until the :DOWN message is processed. This
eliminates the race condition where :DOWN delivery to the GenServer
could be delayed.
Tests that return {:error, :not_found} from get_metadata trigger
async diff generation via handle_info. Without a HexMock stub,
the LiveView process crashes with Mox.UnexpectedCallError after
the test exits.
@ericmj ericmj merged commit 999ead8 into main Mar 29, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/tmpdir-await-cleanup branch March 29, 2026 17:56
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