File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function startProxy(port) {
13
13
proxy . use (
14
14
'/' ,
15
15
httpProxy ( {
16
- target : 'http://0.0.0.0 :8080' ,
16
+ target : 'http://localhost :8080' ,
17
17
ws : true ,
18
18
changeOrigin : true ,
19
19
} )
@@ -45,15 +45,15 @@ describe('Client code', () => {
45
45
jest . setTimeout ( 30000 ) ;
46
46
47
47
beforeAll ( ( ) => {
48
- proxy = startProxy ( 9050 ) ;
48
+ proxy = startProxy ( 9000 ) ;
49
49
} ) ;
50
50
51
51
afterAll ( ( ) => {
52
52
proxy . close ( ) ;
53
53
} ) ;
54
54
55
55
it ( 'responds with a 200' , ( done ) => {
56
- const req = request ( 'http://localhost:9050 ' ) ;
56
+ const req = request ( 'http://localhost:9000 ' ) ;
57
57
req . get ( '/sockjs-node' ) . expect ( 200 , 'Welcome to SockJS!\n' , done ) ;
58
58
} ) ;
59
59
@@ -63,12 +63,12 @@ describe('Client code', () => {
63
63
. waitForRequest ( ( requestObj ) => requestObj . url ( ) . match ( / s o c k j s - n o d e / ) )
64
64
. then ( ( requestObj ) => {
65
65
expect ( requestObj . url ( ) ) . toMatch (
66
- / ^ h t t p : \/ \/ l o c a l h o s t : 9 0 5 0 \/ s o c k j s - n o d e /
66
+ / ^ h t t p : \/ \/ l o c a l h o s t : 9 0 0 0 \/ s o c k j s - n o d e /
67
67
) ;
68
68
browser . close ( ) ;
69
69
done ( ) ;
70
70
} ) ;
71
- page . goto ( 'http://localhost:9050 /main' ) ;
71
+ page . goto ( 'http://localhost:9000 /main' ) ;
72
72
} ) ;
73
73
} ) ;
74
74
} ) ;
You can’t perform that action at this time.
0 commit comments