Skip to content

Commit 1ac9007

Browse files
committed
Fix race condition in test
1 parent 72e5d84 commit 1ac9007

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/ex_unit/test/ex_unit/assertions_test.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,9 @@ defmodule ExUnit.AssertionsTest do
651651

652652
test "stops tracing and flushes messages once the function returns" do
653653
pid = spawn_link(fn -> receive(do: (_ -> :ok)) end)
654-
655654
trace(pid, [:receive], fn -> send(pid, :during) end)
656-
657655
send(pid, :after)
658-
refute_received {:trace, ^pid, :receive, _}
656+
refute_received {:trace, ^pid, :receive, :after}
659657
end
660658

661659
test "receive match specs" do

0 commit comments

Comments
 (0)