Skip to content

Conversation

@tombruijn
Copy link
Member

It looks like the do end block no longer works for catch_exit.

The only thing it seems to do is catch an exit if one occurs, not assert if it happens. If we remove it the tests fails on the errors we assert on the spans that bubble up from the GenServer.

Directly pass in the GenServer call, like in the docs example:

assert catch_exit(exit(1)) == 1

https://hexdocs.pm/ex_unit/ExUnit.Assertions.html#catch_exit/1

[skip changeset]

It looks like the `do end` block no longer works for `catch_exit`.

The only thing it seems to do is catch an exit if one occurs, not assert
if it happens. If we remove it the tests fails on the errors we assert
on the spans that bubble up from the GenServer.

Directly pass in the GenServer call, like in the docs example:

```elixir
assert catch_exit(exit(1)) == 1
```

https://hexdocs.pm/ex_unit/ExUnit.Assertions.html#catch_exit/1
@tombruijn tombruijn self-assigned this Sep 4, 2025
@tombruijn tombruijn added the chore A small task that takes a day or two at the most. label Sep 4, 2025
@tombruijn tombruijn requested a review from unflxw September 4, 2025 07:38
@tombruijn tombruijn marked this pull request as ready for review September 4, 2025 07:38
@backlog-helper
Copy link

backlog-helper bot commented Sep 8, 2025


This is a message from the daily scheduled checks.

New issue guide | Backlog management | Rules | Feedback

@tombruijn tombruijn merged commit 1d68fad into main Sep 8, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A small task that takes a day or two at the most.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants