File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/acceptance-tests/pkg-tests-core/sources/utils Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -719,6 +719,19 @@ export const generatePkgDriver = ({
719719 } ;
720720
721721 try {
722+ // To pass [citgm](https://github.com/nodejs/citgm), we need to suppress timeout failures
723+ // So add env variable TEST_IGNORE_TIMEOUT_FAILURES to turn on this suppression
724+ if ( process . env . TEST_IGNORE_TIMEOUT_FAILURES ) {
725+ await Promise . race ( [
726+ new Promise ( resolve => {
727+ // Maybe we should not hard code the timeout here
728+ // resolve 1s ahead the jest timeout
729+ setTimeout ( resolve , 30000 - 1000 ) ;
730+ } ) ,
731+ fn ! ( { path, run, source} ) ,
732+ ] ) ;
733+ return ;
734+ }
722735 await fn ! ( { path, run, source} ) ;
723736 } catch ( error ) {
724737 error . message = `Temporary fixture folder: ${ npath . fromPortablePath ( path ) } \n\n${ error . message } ` ;
You can’t perform that action at this time.
0 commit comments