Closed maxiaohao closed 10 years ago
Pull request #158 can fix the mistaken code, but the test still breaks after 30-second timeout, only with some "more friendly" messages returned:
[2014-01-04 00:41:49.154] [INFO] runNodejsTest - Waiting for the test report
...
[2014-01-04 00:42:17.689] [INFO] runNodejsTest - Waiting for the test report
[2014-01-04 00:42:18.189] [INFO] runNodejsTest - Waiting for the test report
[2014-01-04 00:42:18.195] [INFO] TestExecutor - Time taken to run - undefined-Default is::31.63
[2014-01-04 00:42:18.199] [INFO] ReportManager - No TestReport found, but passing the test because 'hasTest' was passed as 'false'
It seems that probably Arrow's reporting thread could wait no longer than 30 seconds. Does anyone know the right way to enlarge timeout? Or any good resolution?
Thanks!
Fixed by enlarging the timeout with command line option --testTimeOut
.
E.g. arrow MyTest.js --engine=mocha --testTimeOut=120000
can take up to 2 minutes.
Thank Pranav!
Closing this issue.
For a test
MyTest.js
with its 'it' block takes longer than 30 seconds:The test passes if run with mocha:
mocha MyTest.js -R spec
But it breaks when run with arrow:
arrow MyTest.js --engine=mocha
Environments: arrow: v0.0.88 mocha: 1.7.4 (as dependency in arrow) node.js: v0.10.22
Is that a bug, or is there any switch or solution for enlarging arrows' default timeout (especially by using engine=mocha)?
Thanks very much!