Skip to content

Commit

Permalink
Don't depend on the scheduling order to verify success
Browse files Browse the repository at this point in the history
  • Loading branch information
RaimoNiskanen committed Oct 8, 2024
1 parent d49b7c0 commit e688fae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/kernel/test/gen_tcp_misc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9488,11 +9488,9 @@ fill_send_buffers(Payload, Sa, Sb, Timeout, N) ->
end.

recv_data(_Payload, Sa, Ref, Ref2, M, N) when M < N ->
receive Msg ->
{send_result, Ref, ok} = Msg,
receive {send_result, Ref, ok} ->
io:format("[~w] Send finished ~w~n", [self(), Ref]),
receive Msg2 ->
{send_result, Ref2, ok} = Msg2,
receive {send_result, Ref2, ok} ->
io:format("[~w] Send finished ~w~n", [self(), Ref2]),
gen_tcp:shutdown(Sa, write),
{error, closed} = gen_tcp:recv(Sa, 0),
Expand Down

0 comments on commit e688fae

Please sign in to comment.