Skip to content

Commit 709eb8c

Browse files
committed
Remove not needed clause
1 parent 3d979e0 commit 709eb8c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

lib/ssh/test/ssh_protocol_SUITE.erl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -889,18 +889,13 @@ test_packet_discard(Config, PacketFun, DataLength, ImmediateDisconnect, Overshoo
889889

890890
Size = receive {size, S} -> S end,
891891
Missing = ?SSH_MAX_PACKET_SIZE - Size,
892-
case proplists:get_value(discard, Config) of
893-
_ when ImmediateDisconnect ->
892+
case proplists:get_value(discard, Config) == false orelse ImmediateDisconnect of
893+
true ->
894894
%% We already sent as much (or more) than ?SSH_MAX_PACKET_SIZE,
895895
%% we get disconnect
896896
{ok, _} =
897897
ssh_trpt_test_lib:exec([{match, disconnect(), receive_msg}], AfterSendState0);
898898
false ->
899-
{ok, _} =
900-
ssh_trpt_test_lib:exec([%% Prohibit remote decoder starvation:
901-
{send, #ssh_msg_service_request{name="ssh-userauth"}},
902-
{match, disconnect(), receive_msg}], AfterSendState0);
903-
true ->
904899
%% Packet is too short to cause disconnect immediately
905900
{error, {_, receive_timeout, AfterSendState1}} =
906901
ssh_trpt_test_lib:exec([{match, disconnect(), receive_msg}], AfterSendState0),

0 commit comments

Comments
 (0)