test(exproto): fix timeout cases
This commit is contained in:
parent
f4ad7acd06
commit
efdde6e107
|
@ -213,11 +213,13 @@ t_keepalive_timeout(Cfg) ->
|
||||||
send(Sock, ConnBin),
|
send(Sock, ConnBin),
|
||||||
{ok, ConnAckBin} = recv(Sock, 5000),
|
{ok, ConnAckBin} = recv(Sock, 5000),
|
||||||
|
|
||||||
DisconnectBin = frame_disconnect(),
|
%% Timed out connections are closed immediately,
|
||||||
{ok, DisconnectBin} = recv(Sock, 10000),
|
%% so there may not be a disconnect message here
|
||||||
|
%%DisconnectBin = frame_disconnect(),
|
||||||
|
%%{ok, DisconnectBin} = recv(Sock, 10000),
|
||||||
|
|
||||||
SockType =/= udp andalso begin
|
SockType =/= udp andalso begin
|
||||||
{error, closed} = recv(Sock, 5000)
|
{error, closed} = recv(Sock, 10000)
|
||||||
end, ok.
|
end, ok.
|
||||||
|
|
||||||
t_hook_connected_disconnected(Cfg) ->
|
t_hook_connected_disconnected(Cfg) ->
|
||||||
|
|
Loading…
Reference in New Issue