aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ws_SUITE.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index 709eb89..06f1e93 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -165,7 +165,11 @@ reply_to(Config) ->
Self = self(),
Frame = {text, <<"Hello!">>},
ReplyTo = spawn(fun() ->
- {ConnPid, StreamRef} = receive Msg -> Msg after 1000 -> error(timeout) end,
+ {ConnPid, StreamRef} = receive
+ {C, S} when is_pid(C), is_reference(S) -> {C, S}
+ after 1000 ->
+ error(timeout)
+ end,
{upgrade, [<<"websocket">>], _} = gun:await(ConnPid, StreamRef),
Self ! {self(), ready},
{ws, Frame} = gun:await(ConnPid, StreamRef),