From 73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Wed, 12 Dec 2018 18:39:34 +0100
Subject: [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
---
 erts/emulator/test/socket_SUITE.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'erts')

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)};
-- 
cgit v1.2.3