From c8c99b3caa23efa9c22a79a6c63ede93526b3599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 23 Jan 2023 13:02:22 +0100 Subject: Fix intermittent error in stream_info_http test --- test/gun_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl index 53fdb46..22b0eeb 100644 --- a/test/gun_SUITE.erl +++ b/test/gun_SUITE.erl @@ -551,13 +551,13 @@ stream_info_http(_) -> state := running }} = gun:stream_info(Pid, StreamRef), gun:cancel(Pid, StreamRef), - OriginPid ! cancel, {ok, #{ ref := StreamRef, reply_to := Self, state := stopping }} = gun:stream_info(Pid, StreamRef), - %% Wait for the stream to be canceled. + %% Cancel and wait for the stream to be canceled. + OriginPid ! cancel, receive_event(Pid, cancel), fun F() -> case gun:stream_info(Pid, StreamRef) of -- cgit v1.2.3