Skip to content

Commit

Permalink
rabbit_fifo_SUITE: List actual effects in ?ASSERT_EFF failure
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed May 1, 2024
1 parent 5aa1a7a commit 34e0c5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deps/rabbit/test/rabbit_fifo_SUITE.erl
Expand Up @@ -67,7 +67,10 @@ end_per_testcase(_Group, _Config) ->
-define(ASSERT_EFF(EfxPat, Guard, Effects),
?assert(lists:any(fun (EfxPat) when Guard -> true;
(_) -> false
end, Effects))).
end, Effects),
lists:flatten(io_lib:format("Expected to find effect matching "
"pattern '~s' in effect list '~0p'",
[??EfxPat, Effects])))).

-define(ASSERT_NO_EFF(EfxPat, Effects),
?assert(not lists:any(fun (EfxPat) -> true;
Expand Down

0 comments on commit 34e0c5b

Please sign in to comment.