diff options
author | Hans Nilsson <[email protected]> | 2015-10-09 12:42:32 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-10-09 12:42:32 +0200 |
commit | 38be5f936a3ed12a01f4f4441dbaa6b4d084d01f (patch) | |
tree | 3f69c31ff910fcd40b96c0109d2ac2d4bfbf87c9 /lib/ssh/test/ssh_to_openssh_SUITE.erl | |
parent | 309c4b503df1a586e57f6558b6de08245fa80d47 (diff) | |
download | otp-38be5f936a3ed12a01f4f4441dbaa6b4d084d01f.tar.gz otp-38be5f936a3ed12a01f4f4441dbaa6b4d084d01f.tar.bz2 otp-38be5f936a3ed12a01f4f4441dbaa6b4d084d01f.zip |
ssh: added 'after' to receive stmts in test/
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index c0dee6a1d3..026fe545c1 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -653,6 +653,8 @@ receive_hej() -> ct:log("Extra info: ~p~n", [Info]), receive_hej() end + after + 30000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) end. receive_logout() -> @@ -662,11 +664,15 @@ receive_logout() -> receive <<"Connection closed">> -> ok + after + 30000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) end; Info -> ct:log("Extra info when logging out: ~p~n", [Info]), receive_logout() - end. + after + 30000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) + end. receive_normal_exit(Shell) -> receive @@ -676,6 +682,8 @@ receive_normal_exit(Shell) -> receive_normal_exit(Shell); Other -> ct:fail({unexpected_msg, Other}) + after + 30000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) end. extra_logout() -> |