diff options
author | Loïc Hoguin <[email protected]> | 2020-11-23 10:46:18 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-11-23 11:02:01 +0100 |
commit | fa9c8ad832f72f44b70924c1aa3a2ab4fd04c8da (patch) | |
tree | 7a918a2a1019d7c984135cf06eb8a959c82f1abf /test/examples_SUITE.erl | |
parent | e12d7bbe2151ee727d4cd63eb5df649da9b9effa (diff) | |
download | cowboy-fa9c8ad832f72f44b70924c1aa3a2ab4fd04c8da.tar.gz cowboy-fa9c8ad832f72f44b70924c1aa3a2ab4fd04c8da.tar.bz2 cowboy-fa9c8ad832f72f44b70924c1aa3a2ab4fd04c8da.zip |
Use gun:ws_send/3 in tests
Diffstat (limited to 'test/examples_SUITE.erl')
-rw-r--r-- | test/examples_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/examples_SUITE.erl b/test/examples_SUITE.erl index c60315b..0a3b0eb 100644 --- a/test/examples_SUITE.erl +++ b/test/examples_SUITE.erl @@ -458,14 +458,14 @@ websocket(Config) -> exit(timeout) end, %% Check that we receive the echoed message. - gun:ws_send(Pid, {text, <<"hello">>}), + gun:ws_send(Pid, StreamRef, {text, <<"hello">>}), receive {gun_ws, Pid, StreamRef, {text, <<"That's what she said! hello">>}} -> ok after 500 -> exit(timeout) end, - gun:ws_send(Pid, close) + gun:ws_send(Pid, StreamRef, close) after do_stop(websocket) end. |