aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-08-29 12:49:22 +0200
committerHans Nilsson <[email protected]>2016-08-29 16:51:51 +0200
commit912f701dde1aa24e81de6fa37dfec5de8f8c989d (patch)
treef2304ddc0c44cd47721e3ba0ee4bdd7688e3911d /lib/ssh/test
parent69d442f8afc67aef33c70d68d7eaab2bdad1400f (diff)
downloadotp-912f701dde1aa24e81de6fa37dfec5de8f8c989d.tar.gz
otp-912f701dde1aa24e81de6fa37dfec5de8f8c989d.tar.bz2
otp-912f701dde1aa24e81de6fa37dfec5de8f8c989d.zip
ssh: fix changed badmatch error msg in ssh_algorithms_SUITE
Diffstat (limited to 'lib/ssh/test')
-rw-r--r--lib/ssh/test/ssh_algorithms_SUITE.erl18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/ssh/test/ssh_algorithms_SUITE.erl b/lib/ssh/test/ssh_algorithms_SUITE.erl
index 0f68130a05..8b2db0e1a8 100644
--- a/lib/ssh/test/ssh_algorithms_SUITE.erl
+++ b/lib/ssh/test/ssh_algorithms_SUITE.erl
@@ -180,21 +180,19 @@ simple_exec(Config) ->
%%--------------------------------------------------------------------
%% Testing if no group matches
simple_exec_groups_no_match_too_small(Config) ->
- try simple_exec_group({400,500,600}, Config)
- of
- _ -> ct:fail("Exec though no group available")
- catch
- error:{badmatch,{error,"No possible diffie-hellman-group-exchange group found"}} ->
- ok
- end.
+ try_exec_simple_group({400,500,600}, Config).
simple_exec_groups_no_match_too_large(Config) ->
- try simple_exec_group({9200,9500,9700}, Config)
+ try_exec_simple_group({9200,9500,9700}, Config).
+
+
+try_exec_simple_group(Group, Config) ->
+ try simple_exec_group(Group, Config)
of
_ -> ct:fail("Exec though no group available")
catch
- error:{badmatch,{error,"No possible diffie-hellman-group-exchange group found"}} ->
- ok
+ error:{badmatch,{error,"No possible diffie-hellman-group-exchange group found"}} -> ok;
+ error:{badmatch,{error,"Connection closed"}} -> ok
end.
%%--------------------------------------------------------------------