diff options
author | Hans Nilsson <[email protected]> | 2016-04-14 10:28:04 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-04-29 13:17:52 +0200 |
commit | 223b123f576e726c18bcd38fa2b866d23f1a14a3 (patch) | |
tree | 728d1c6389f84669b9360a25ff5ef8b5e2b72234 /lib/ssh/test/ssh_to_openssh_SUITE.erl | |
parent | 0977a597432d018ff0edb3895a32f78a08647b85 (diff) | |
download | otp-223b123f576e726c18bcd38fa2b866d23f1a14a3.tar.gz otp-223b123f576e726c18bcd38fa2b866d23f1a14a3.tar.bz2 otp-223b123f576e726c18bcd38fa2b866d23f1a14a3.zip |
ssh: breakout rcv_expected to ssh_test_lib.erl
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index 6132ff399e..ea057ed8a5 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -380,16 +380,7 @@ erlang_server_openssh_client_public_key_X(Config, PubKeyAlg) -> " " ++ Host ++ " 1+1.", SshPort = open_port({spawn, Cmd}, [binary, stderr_to_stdout]), - receive - {SshPort,{data, <<"2\n">>}} -> - ok - after ?TIMEOUT -> - receive - X -> ct:fail("Received: ~p",[X]) - after 0 -> - ct:fail("Did not receive answer") - end - end, + ssh_test_lib:rcv_expected({data,<<"2\n">>}, SshPort, ?TIMEOUT), ssh:stop_daemon(Pid). %%-------------------------------------------------------------------- |