aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-12-12 18:39:34 +0100
committerMicael Karlberg <[email protected]>2018-12-14 12:01:17 +0100
commit73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1 (patch)
tree63b9d55fc4b869f3d911b3783184112f1aca8567 /erts
parent342d35f457c15a9cea426e8ca83bfd52b0ec2f2e (diff)
downloadotp-73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1.tar.gz
otp-73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1.tar.bz2
otp-73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1.zip
[socket-nif|test] Correct the (api) connect timeout test case
Assumed the wrong success value ({ok, _} instead of ok) for the api-to-connect-tcp test case. OTP-14831
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/test/socket_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_SUITE.erl b/erts/emulator/test/socket_SUITE.erl
index 71e32f8e95..779cc80ad6 100644
--- a/erts/emulator/test/socket_SUITE.erl
+++ b/erts/emulator/test/socket_SUITE.erl
@@ -1911,7 +1911,7 @@ api_to_connect_tcp(InitState) ->
client := Client} = _State) ->
case ?SEV_AWAIT_READY(Client, client, connect,
[{server, Server}]) of
- {ok, _} ->
+ ok ->
ok;
{error, _} = ERROR ->
ERROR
@@ -3670,6 +3670,7 @@ sc_lc_receive_response_tcp(InitState) ->
end},
#{desc => "close the connection socket",
cmd => fun(#{csock := Sock} = State) ->
+ %% ok = socket:setopt(Sock, otp, debug, true),
case socket:close(Sock) of
ok ->
{ok, maps:remove(csock, State)};