aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_protocol_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-07-05 11:19:42 +0200
committerHans Nilsson <[email protected]>2015-07-05 11:19:42 +0200
commit5f43059948e4ae242ba4e73a0728cd57b3360f1a (patch)
treecacb2dbda58e27a7bfe010dc8dc2cca191d926cd /lib/ssh/test/ssh_protocol_SUITE.erl
parent26f1810479a837ab338e7a9e3aef027a9e4b098d (diff)
parentddc7ce9124a8fb03bb95b5d550812c34f4177946 (diff)
downloadotp-5f43059948e4ae242ba4e73a0728cd57b3360f1a.tar.gz
otp-5f43059948e4ae242ba4e73a0728cd57b3360f1a.tar.bz2
otp-5f43059948e4ae242ba4e73a0728cd57b3360f1a.zip
Merge branch 'maint'
* maint: ssh: be more generous about disconnect expects ssh: add disjunction to ssh_trpt_test_lib:match
Diffstat (limited to 'lib/ssh/test/ssh_protocol_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_protocol_SUITE.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ssh/test/ssh_protocol_SUITE.erl b/lib/ssh/test/ssh_protocol_SUITE.erl
index 58c8306c31..d82cdaf2c7 100644
--- a/lib/ssh/test/ssh_protocol_SUITE.erl
+++ b/lib/ssh/test/ssh_protocol_SUITE.erl
@@ -226,7 +226,8 @@ no_common_alg_server_disconnects(Config) ->
{match, #ssh_msg_kexinit{_='_'}, receive_msg},
{send, ssh_msg_kexinit},
{match,
- #ssh_msg_disconnect{code = ?SSH_DISCONNECT_KEY_EXCHANGE_FAILED, _='_'},
+ {'or',[#ssh_msg_disconnect{code = ?SSH_DISCONNECT_KEY_EXCHANGE_FAILED, _='_'},
+ tcp_closed]},
receive_msg}
]
).
@@ -269,10 +270,10 @@ no_common_alg_client_disconnects(Config) ->
first_kex_packet_follows = false,
reserved = 0
}},
-
- {match,
- #ssh_msg_disconnect{code = ?SSH_DISCONNECT_KEY_EXCHANGE_FAILED, _='_'},
- receive_msg}
+ {match,
+ {'or',[#ssh_msg_disconnect{code = ?SSH_DISCONNECT_KEY_EXCHANGE_FAILED, _='_'},
+ tcp_closed]},
+ receive_msg}
],
InitialState)
}