You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/01/13 19:42:26 UTC
[couchdb-mochiweb] 27/37: Remove compile(tuple_calls) from
test/mochiweb_websocket_tests
This is an automated email from the ASF dual-hosted git repository.
willholley pushed a commit to branch upstream
in repository https://gitbox.apache.org/repos/asf/couchdb-mochiweb.git
commit 13ea57e7ba2c00b7a9242961e769933275789ce6
Author: Bob Ippolito <bo...@redivi.com>
AuthorDate: Tue Mar 12 01:32:14 2019 +0000
Remove compile(tuple_calls) from test/mochiweb_websocket_tests
---
test/mochiweb_websocket_tests.erl | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/mochiweb_websocket_tests.erl b/test/mochiweb_websocket_tests.erl
index 71fb9a6..0af29b7 100644
--- a/test/mochiweb_websocket_tests.erl
+++ b/test/mochiweb_websocket_tests.erl
@@ -23,8 +23,6 @@
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
%% THE SOFTWARE.
--compile(tuple_calls).
-
-include_lib("eunit/include/eunit.hrl").
make_handshake_for_correct_client_test() ->
@@ -94,8 +92,8 @@ end_to_end_test_factory(ServerTransport) ->
end).
end_to_end_server(Req) ->
- ?assertEqual("Upgrade", Req:get_header_value("connection")),
- ?assertEqual("websocket", Req:get_header_value("upgrade")),
+ ?assertEqual("Upgrade", mochiweb_request:get_header_value("connection", Req)),
+ ?assertEqual("websocket", mochiweb_request:get_header_value("upgrade", Req)),
{ReentryWs, _ReplyChannel} = mochiweb_websocket:upgrade_connection(
Req,
fun end_to_end_ws_loop/3),