diff options
author | Micael Karlberg <[email protected]> | 2018-12-12 18:39:34 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-12-14 12:01:17 +0100 |
commit | 73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1 (patch) | |
tree | 63b9d55fc4b869f3d911b3783184112f1aca8567 /erts | |
parent | 342d35f457c15a9cea426e8ca83bfd52b0ec2f2e (diff) | |
download | otp-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.erl | 3 |
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)}; |