Skip to content

Commit

Permalink
Make test work with the current version of the erlang package
Browse files Browse the repository at this point in the history
  • Loading branch information
sbergen authored and lpil committed Feb 23, 2025
1 parent 11395c1 commit 42d278e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/gleam/otp/actor_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,12 @@ pub fn abnormal_exit_can_be_trapped_test() {
// Stop trapping exits, as otherwise other tests fail
process.trap_exits(False)

// The weird reason below is because of https://github.com/gleam-lang/erlang/issues/66
trapped_reason
|> should.equal(
Ok(process.ExitMessage(
process.subject_owner(subject),
process.Abnormal("reason"),
process.Abnormal("Abnormal(\"reason\")"),
)),
)
}
Expand Down

0 comments on commit 42d278e

Please sign in to comment.