diff options
author | Hans Nilsson <[email protected]> | 2016-04-13 15:35:41 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-04-29 13:17:52 +0200 |
commit | 8bfcd11948895164d1841c0c00450b0e26cb9927 (patch) | |
tree | ca2541cbf9017aec0f10a0675548b84cc5196307 /lib/ssh/test/ssh_connection_SUITE.erl | |
parent | 020e62c9619b518620d216cf0caef55fe129d4c3 (diff) | |
download | otp-8bfcd11948895164d1841c0c00450b0e26cb9927.tar.gz otp-8bfcd11948895164d1841c0c00450b0e26cb9927.tar.bz2 otp-8bfcd11948895164d1841c0c00450b0e26cb9927.zip |
ssh: break out test macro ?wait_match into new ssh_test_lib.hrl
Diffstat (limited to 'lib/ssh/test/ssh_connection_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_connection_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_connection_SUITE.erl b/lib/ssh/test/ssh_connection_SUITE.erl index fd1b2e4f8e..0f757a0322 100644 --- a/lib/ssh/test/ssh_connection_SUITE.erl +++ b/lib/ssh/test/ssh_connection_SUITE.erl @@ -23,6 +23,7 @@ -include_lib("common_test/include/ct.hrl"). -include_lib("ssh/src/ssh_connect.hrl"). +-include("ssh_test_lib.hrl"). -compile(export_all). @@ -691,7 +692,7 @@ max_channels_option(Config) when is_list(Config) -> end, %%%---- Channel 3(3): subsystem "echo_n" (Note that ChannelId2 should be closed now) - success = ssh_connection:subsystem(ConnectionRef, ChannelId3, "echo_n", infinity), + ?wait_match(success, ssh_connection:subsystem(ConnectionRef, ChannelId3, "echo_n", infinity)), %%%---- Channel 4(3) !: exec This should fail failure = ssh_connection:exec(ConnectionRef, ChannelId4, "testing2.\n", infinity), @@ -710,7 +711,7 @@ max_channels_option(Config) when is_list(Config) -> end, %%---- Try that we can open one channel instead of the closed one - success = ssh_connection:subsystem(ConnectionRef, ChannelId5, "echo_n", infinity), + ?wait_match(success, ssh_connection:subsystem(ConnectionRef, ChannelId5, "echo_n", infinity)), %%---- But not a fourth one... failure = ssh_connection:subsystem(ConnectionRef, ChannelId6, "echo_n", infinity), |