summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-12-01 06:13:10 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-12-01 06:13:10 +0300
commita5c8de73ce77582023957657d2d66126a76cd514 (patch)
tree4d3c7d124664f46d09a4e744d018887cef7ca8be
parent4c02de62ec769825511a9f31f9fbc48c6595eb2e (diff)
downloadrabbitmq-server-git-a5c8de73ce77582023957657d2d66126a76cd514.tar.gz
Use ?assertEquals here
-rw-r--r--deps/amqp_client/test/system_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/amqp_client/test/system_SUITE.erl b/deps/amqp_client/test/system_SUITE.erl
index 5d2ac8683a..45ada5cf19 100644
--- a/deps/amqp_client/test/system_SUITE.erl
+++ b/deps/amqp_client/test/system_SUITE.erl
@@ -324,7 +324,7 @@ safe_call_timeouts_test(Params = #amqp_params_network{}) ->
{error, test_connection_timeout}
end),
- {error, test_connection_timeout} = amqp_connection:start(Params1),
+ ?assertEqual({error, test_connection_timeout}, amqp_connection:start(Params1)),
?assertEqual(TestConnTimeout + ?CALL_TIMEOUT_DEVIATION, amqp_util:call_timeout()),
@@ -391,7 +391,7 @@ safe_call_timeouts_test(Params = #amqp_params_direct{}) ->
{error, test_connection_timeout}
end),
- {error, test_connection_timeout} = amqp_connection:start(Params),
+ ?assertEqual({error, test_connection_timeout}, amqp_connection:start(Params)),
?assertEqual((?DIRECT_OPERATION_TIMEOUT + ?CALL_TIMEOUT_DEVIATION),
amqp_util:call_timeout()),