test/run-all-tests.js
/**
 * The installation needs time to complete first. Run the test when the
 * installation finishes or timeout if we waited more than 1 minute.
 */
The installation needs time to complete first. Run the test when the
installation finishes or timeout if we waited more than 1 minute.
The installation needs time to complete first . Run the test when the installation finishes or timeout if we waited more than 1 minute .
function runTestWhenReady() {
    const config = Path.join(testRoot, 'private', 'config.json');
    if(FS.existsSync(config)) {
        run();
    } else {
        const now = new Date().getTime() / 1000;
        if ( started + 60 > now ) {
            setTimeout(runTestWhenReady, 500);
        } else {
            console.error('ERROR: Tests took to long to run! Something may be wrong or the test environment hung.');
            process.exit(1);
        }
    }
}
function runTestWhenReady ( ) { const config = Path . join ( testRoot , 'private' , 'config.json' ) ; if ( FS . existsSync ( config ) ) { run ( ) ; } else { const now = new Date ( ) . getTime ( ) / 1000 ; if ( started + 60 > now ) { setTimeout ( runTestWhenReady , 500 ) ; } else { console . error ( 'ERROR: Tests took to long to run! Something may be wrong or the test environment hung.' ) ; process . exit ( 1 ) ; } } }
The installation needs time to complete first.
The installation needs time to complete first .