Commit Graph

7 Commits

Author SHA1 Message Date
Philip Kuryloski dbb09f1bf5 Add ?awaitMatch/4 to rabbit_assert.hrl
?awaitMatch/4 is the same as ?awaitMatch/3, but where the polling
interval is configurable
2021-07-05 15:21:27 +02:00
Philip Kuryloski f8c09121c1 Revert "Add ?awaitMatch/4 to rabbit_assert.hrl"
This reverts commit 3bb9d0084d.
2021-07-05 11:46:51 +02:00
Philip Kuryloski 3bb9d0084d Add ?awaitMatch/4 to rabbit_assert.hrl
?awaitMatch/4 is the same as ?awaitMatch/3, but where the polling
interval is configurable
2021-07-05 11:40:42 +02:00
Philip Kuryloski 0236c64ace Reduce chances of variable capture in ?awaitMatch
Attempt to name all of the variables in the macro such that they are less
likely to collide with any existing bindings.
2020-07-06 12:08:23 +02:00
Philip Kuryloski 9479c2e9cc Add ?awaitMatch macro
awaitMatch(Guard, Expr, Timeout) reevaluates Expr until it matches
Guard up to Timeout milliseconds from now. It returns the matched
value, in the event said value is useful later in a test.

Additionally simplify an instance of ?assertEqual(true, ... to ?assert(
2020-07-02 11:33:17 +02:00
Daniil Fedotov c3f2bc70f7 Post-merge fixes 2017-05-03 13:55:24 +01:00
Daniil Fedotov ca42aa2db9 Move management test helpers here to test management plugins 2017-04-28 12:27:52 +01:00