@@ -460,11 +460,6 @@ for (const webSocketServerType of webSocketServerTypes) {
460
460
webSocketServer : webSocketServerType ,
461
461
port : 'auto' ,
462
462
host : '0.0.0.0' ,
463
- client : {
464
- webSocketURL : {
465
- port : port2 ,
466
- } ,
467
- } ,
468
463
} ;
469
464
testServer . startAwaitingCompilation ( config , options , done ) ;
470
465
} ) ;
@@ -476,7 +471,7 @@ for (const webSocketServerType of webSocketServerTypes) {
476
471
runBrowser ( ) . then ( ( { page, browser } ) => {
477
472
waitForTest ( browser , page , / w s / , ( websocketUrl ) => {
478
473
expect ( websocketUrl ) . toContain (
479
- `${ websocketUrlProtocol } ://localhost:${ port2 } /ws`
474
+ `${ websocketUrlProtocol } ://localhost:8080 /ws`
480
475
) ;
481
476
482
477
done ( ) ;
@@ -488,52 +483,12 @@ for (const webSocketServerType of webSocketServerTypes) {
488
483
} ) ;
489
484
} ) ;
490
485
491
- describe ( 'should work with the "port" option is 80' , ( ) => {
492
- beforeAll ( ( done ) => {
493
- const options = {
494
- webSocketServer : webSocketServerType ,
495
- port : 80 ,
496
- host : '0.0.0.0' ,
497
- client : {
498
- webSocketURL : {
499
- port : port2 ,
500
- } ,
501
- } ,
502
- } ;
503
-
504
- testServer . startAwaitingCompilation ( config , options , done ) ;
505
- } ) ;
506
-
507
- afterAll ( testServer . close ) ;
508
-
509
- describe ( 'browser client' , ( ) => {
510
- it ( 'should work' , ( done ) => {
511
- runBrowser ( ) . then ( ( { page, browser } ) => {
512
- waitForTest ( browser , page , / w s / , ( websocketUrl ) => {
513
- expect ( websocketUrl ) . toContain (
514
- `${ websocketUrlProtocol } ://localhost:${ port2 } /ws`
515
- ) ;
516
-
517
- done ( ) ;
518
- } ) ;
519
-
520
- page . goto ( `http://localhost:80/main` ) ;
521
- } ) ;
522
- } ) ;
523
- } ) ;
524
- } ) ;
525
-
526
486
describe ( 'should work when "host" option is IPv4' , ( ) => {
527
487
beforeAll ( ( done ) => {
528
488
const options = {
529
489
webSocketServer : webSocketServerType ,
530
490
port : port3 ,
531
491
host : internalIp . v4 . sync ( ) ,
532
- client : {
533
- webSocketURL : {
534
- port : port2 ,
535
- } ,
536
- } ,
537
492
} ;
538
493
testServer . startAwaitingCompilation ( config , options , done ) ;
539
494
} ) ;
@@ -545,7 +500,7 @@ for (const webSocketServerType of webSocketServerTypes) {
545
500
runBrowser ( ) . then ( ( { page, browser } ) => {
546
501
waitForTest ( browser , page , / w s / , ( websocketUrl ) => {
547
502
expect ( websocketUrl ) . toContain (
548
- `${ websocketUrlProtocol } ://${ internalIp . v4 . sync ( ) } :${ port2 } /ws`
503
+ `${ websocketUrlProtocol } ://${ internalIp . v4 . sync ( ) } :${ port3 } /ws`
549
504
) ;
550
505
551
506
done ( ) ;
0 commit comments