diff --git a/lib/ssh/test/ssh_connection_SUITE.erl b/lib/ssh/test/ssh_connection_SUITE.erl index 3d0bd22bc1c..655a7bcc952 100644 --- a/lib/ssh/test/ssh_connection_SUITE.erl +++ b/lib/ssh/test/ssh_connection_SUITE.erl @@ -1565,7 +1565,9 @@ stop_listener(Config) when is_list(Config) -> receive {ssh_cm, ConnectionRef0, {data, ChannelId0, 0, <<"echo testing\n">>}} -> - ok + ok; + R -> ct:fail("Unexpected: ~p, Expected ~p",[R, <<"echo testing\n">>]) + after 5000 -> ct:fail("Exec Timeout") end, @@ -1795,7 +1797,8 @@ do_simple_exec(ConnectionRef, N) -> %% receive response to input receive {ssh_cm, ConnectionRef, {data, ChannelId0, 0, ExpectedBin}} -> - ok + ok; + R -> ct:fail("Unexpected reply: ~p, Expected: ~p",[R, ExpectedBin]) after 10000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) end;