summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2021-03-09 02:48:35 +0300
committerMichael Klishin <michael@clojurewerkz.org>2021-03-09 02:50:03 +0300
commit7ddcc309084ced21bea42653519e26232237d729 (patch)
tree9dec9ca7595800bee9bfc7d6bcda758f7441f24c
parent3a5009a365c29abb5c1d050a70efd73eff646255 (diff)
downloadrabbitmq-server-git-7ddcc309084ced21bea42653519e26232237d729.tar.gz
Make this test more agnostic to stacktrace shape
The point is that both channel and connection go down, not that a particular tuple is thrown (cherry picked from commit 1fc6675a422f97feae02420a963c4dd8d95c3e99)
-rw-r--r--deps/amqp_client/test/system_SUITE.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/deps/amqp_client/test/system_SUITE.erl b/deps/amqp_client/test/system_SUITE.erl
index 09b1ff574e..37b0630da9 100644
--- a/deps/amqp_client/test/system_SUITE.erl
+++ b/deps/amqp_client/test/system_SUITE.erl
@@ -1404,14 +1404,10 @@ channel_death(Config) ->
{ok, Connection} = new_connection(Config),
{ok, Channel} = amqp_connection:open_channel(Connection),
try
- Ret = amqp_channel:call(Channel, bogus_message),
+ Ret = amqp_channel:call(Channel, {bogus_message, 123}),
throw({unexpected_success, Ret})
catch
- exit:{{badarg,
- [{amqp_channel, is_connection_method, 1, _} | _]}, _} -> ok;
- exit:{{badarg,
- [{erlang, element, [1, bogus_message], []},
- {amqp_channel, is_connection_method, 1, _} | _]}, _} -> ok
+ exit:{{unknown_method_name, bogus_message}, _} -> ok
end,
wait_for_death(Channel),
wait_for_death(Connection).