Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixes having to hit CTRL + C when doing serial tests.

I was doing some tests using and even though everything ran
okay except that I had to manually exit Expresso using ctrl + c.

I tried using `process.exit` inside the `else` block but that would
cause Expresso to output `Failure: Only 1 of 3 suites have been
started`. Using a timeout seems to fix it despite the fact that I'm
using 0 as time. Not really sure how this works, but it does :)
  • Loading branch information...
commit ec2da8ab2020efa6b20865dbc3767141d62614dc 1 parent b5e3cb0
Juan Ignacio Iglesias authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 bin/expresso
4 bin/expresso
@@ -791,6 +791,10 @@ function runFiles(files) {
(function next() {
if (files.length) {
runFile(files.shift(), next);
+ } else {
+ setTimeout(function() {
@ignacioiglesias Owner

process.nextTick can (should?) be used instead of setTimeout. Sorry about that :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ process.exit(0);
+ }, 0);
} else {

0 comments on commit ec2da8a

Please sign in to comment.
Something went wrong with that request. Please try again.