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_test_lib.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_test_lib.erl')
-rw-r--r-- | lib/ssh/test/ssh_test_lib.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl index cc3ebf8151..87eaeec1bc 100644 --- a/lib/ssh/test/ssh_test_lib.erl +++ b/lib/ssh/test/ssh_test_lib.erl @@ -163,7 +163,9 @@ loop_io_server(TestCase, Buff0) -> {'EXIT',_, _} -> erlang:display('ssh_test_lib:loop_io_server/2 EXIT'), ok - end. + after + 30000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) + end. io_request({put_chars, Chars}, TestCase, _, _, Buff) -> reply(TestCase, Chars), @@ -212,6 +214,8 @@ receive_exec_result(Msg) -> Other -> ct:log("Other ~p", [Other]), {unexpected_msg, Other} + after + 30000 -> ct:fail("timeout ~p:~p",[?MODULE,?LINE]) end. |