File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const logger = require('../logger')
15
15
const xvfb = require ( '../exec/xvfb' )
16
16
const state = require ( './state' )
17
17
18
- const VERIFY_TEST_RUNNER_TIMEOUT_MS = 30000
18
+ const VERIFY_TEST_RUNNER_TIMEOUT_MS = process . env . CYPRESS_VERIFY_TIMEOUT || 30000
19
19
20
20
const checkExecutable = ( binaryDir ) => {
21
21
const executable = state . getPathToExecutable ( binaryDir )
Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ context('lib/tasks/verify', () => {
72
72
expect ( verify . VERIFY_TEST_RUNNER_TIMEOUT_MS ) . to . be . gt ( 10000 )
73
73
} )
74
74
75
+ it ( 'accepts custom verify task timeout' , ( ) => {
76
+ process . env . CYPRESS_VERIFY_TIMEOUT = '500000'
77
+ delete require . cache [ require . resolve ( `${ lib } /tasks/verify` ) ]
78
+ const newVerifyInstance = require ( `${ lib } /tasks/verify` )
79
+
80
+ expect ( newVerifyInstance . VERIFY_TEST_RUNNER_TIMEOUT_MS ) . to . be . gte ( 500000 )
81
+ } )
82
+
75
83
it ( 'logs error and exits when no version of Cypress is installed' , ( ) => {
76
84
return verify
77
85
. start ( )
You can’t perform that action at this time.
0 commit comments