Skip to content

Commit 3e6c8d3

Browse files
committed
[test] Fix origin header in integration tests
1 parent 1b3810e commit 3e6c8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/WebSocket.integration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const WebSocket = require('..');
77
describe('WebSocket', function () {
88
it('communicates successfully with echo service (ws)', function (done) {
99
const ws = new WebSocket('ws://echo.websocket.org/', {
10-
origin: 'ws://echo.websocket.org',
10+
origin: 'http://www.websocket.org',
1111
protocolVersion: 13
1212
});
1313
const str = Date.now().toString();
@@ -28,7 +28,7 @@ describe('WebSocket', function () {
2828

2929
it('communicates successfully with echo service (wss)', function (done) {
3030
const ws = new WebSocket('wss://echo.websocket.org/', {
31-
origin: 'wss://echo.websocket.org',
31+
origin: 'https://www.websocket.org',
3232
protocolVersion: 13
3333
});
3434
const str = Date.now().toString();

0 commit comments

Comments
 (0)