diff --git a/tests/wpt/web-platform-tests/websockets/constructor/017.html b/tests/wpt/web-platform-tests/websockets/constructor/017.html index 2177ecacb97..69358ec65dc 100644 --- a/tests/wpt/web-platform-tests/websockets/constructor/017.html +++ b/tests/wpt/web-platform-tests/websockets/constructor/017.html @@ -13,6 +13,6 @@ var tests = [ ]; //Pass condition is to not throw for (var i = 0; i < tests.length; ++i) { - test(function(){new WebSocket(tests[i][0] + location.host + ':' + tests[i][1] + '/echo')}, tests[i][0]); + test(function(){new WebSocket(tests[i][0] + location.hostname + ':' + tests[i][1] + '/echo')}, tests[i][0]); }