summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Nilsson <hans@erlang.org>2020-03-02 12:27:24 +0100
committerHans Nilsson <hans@erlang.org>2020-03-02 12:27:24 +0100
commita7395b231b04782a47403a9080e0e6ae37c76260 (patch)
tree57c2505dedff1be49ca13ebb530a68409011c6f1
parentb1a35d50346a3c81e070148860fa097c2a045902 (diff)
parente3b166e7fc1ce76f736ee5c35912c1bd1ea2deb5 (diff)
downloaderlang-a7395b231b04782a47403a9080e0e6ae37c76260.tar.gz
Merge branch 'hans/ssh/cuddle_tests' into maint
* hans/ssh/cuddle_tests: ssh: Remove ssh:set_sock_opt not setable on Windows
-rw-r--r--lib/ssh/test/ssh_basic_SUITE.erl11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index 2ed3a248d5..386730af17 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -1467,13 +1467,12 @@ setopts_getopts(Config) ->
ssh:set_sock_opts(ConnectionRef, [{active,once},{deliver,term},{mode,binary},{packet,0}]),
%% Test to set some other opt
- {ok,[{delay_send,DS0},{reuseaddr,RA0}]} =
- ssh:get_sock_opts(ConnectionRef, [delay_send, reuseaddr]),
+ {ok,[{delay_send,DS0}]} =
+ ssh:get_sock_opts(ConnectionRef, [delay_send]),
DS1 = not DS0,
- RA1 = not RA0,
- ok = ssh:set_sock_opts(ConnectionRef, [{delay_send,DS1},{reuseaddr,RA1}]),
- {ok,[{reuseaddr,RA1},{delay_send,DS1}]} =
- ssh:get_sock_opts(ConnectionRef, [reuseaddr,delay_send]),
+ ok = ssh:set_sock_opts(ConnectionRef, [{delay_send,DS1}]),
+ {ok,[{delay_send,DS1}]} =
+ ssh:get_sock_opts(ConnectionRef, [delay_send]),
ssh:stop_daemon(Pid).