diff options
author | Loïc Hoguin <[email protected]> | 2023-01-23 13:02:22 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-01-23 13:02:22 +0100 |
commit | c8c99b3caa23efa9c22a79a6c63ede93526b3599 (patch) | |
tree | b8ad83d433045d5e089619e079840b259dc35c0e /test/gun_SUITE.erl | |
parent | 9c0be0639f6e41b680580adf02920b8c79b79f7b (diff) | |
download | gun-c8c99b3caa23efa9c22a79a6c63ede93526b3599.tar.gz gun-c8c99b3caa23efa9c22a79a6c63ede93526b3599.tar.bz2 gun-c8c99b3caa23efa9c22a79a6c63ede93526b3599.zip |
Fix intermittent error in stream_info_http test
Diffstat (limited to 'test/gun_SUITE.erl')
-rw-r--r-- | test/gun_SUITE.erl | 4 |
1 files 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 |