File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,18 @@ describe('Client code', () => {
42
42
describe ( 'behind a proxy' , ( ) => {
43
43
let proxy ;
44
44
45
- jest . setTimeout ( 20000 ) ;
45
+ jest . setTimeout ( 30000 ) ;
46
46
47
47
beforeAll ( ( ) => {
48
- proxy = startProxy ( 9000 ) ;
48
+ proxy = startProxy ( 9050 ) ;
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:9000 ' ) ;
56
+ const req = request ( 'http://localhost:9050 ' ) ;
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 0 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 5 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:9000 /main' ) ;
71
+ page . goto ( 'http://localhost:9050 /main' ) ;
72
72
} ) ;
73
73
} ) ;
74
74
} ) ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function runBrowser(config) {
19
19
puppeteer
20
20
. launch ( {
21
21
headless : true ,
22
+ args : [ '--no-sandbox' , '--disable-setuid-sandbox' ] ,
22
23
} )
23
24
. then ( ( launchedBrowser ) => {
24
25
browser = launchedBrowser ;
You can’t perform that action at this time.
0 commit comments