Skip to content

Commit f94fc25

Browse files
the-mikedavismergify[bot]
authored andcommitted
rabbit_assert: Include timeout & polling interval in error
Including this info in the error report can help with sanity checks in debugging `?awaitMatch/4` failures. (cherry picked from commit a28a5f7)
1 parent db2521f commit f94fc25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbitmq_ct_helpers/include/rabbit_assert.hrl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
{line, ?LINE},
1919
{expression, (??Expr)},
2020
{pattern, (??Guard)},
21-
{value, __V}]})
21+
{value, __V},
22+
{timeout, Timeout},
23+
{polling_interval, PollingInterval}]})
2224
end
2325
end
2426
end)(erlang:monotonic_time(millisecond) + Timeout))

0 commit comments

Comments
 (0)