Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async tests run in parallel #178

Open
realyze opened this issue Jun 11, 2015 · 0 comments
Open

Async tests run in parallel #178

realyze opened this issue Jun 11, 2015 · 0 comments

Comments

@realyze
Copy link

realyze commented Jun 11, 2015

I can see in my logs that a beforeEach block is run while another (asynchronous) one is still in progress.

I20150612-08:51:20.392(10)? before each
I20150612-08:51:20.393(10)? ==> onCreateUser
I20150612-08:51:20.399(10)? [velocity] Established connection with Velocity.
I20150612-08:51:20.402(10)? before each done
I20150612-08:51:20.403(10)? before each 2
I20150612-08:51:20.411(10)? Running mocha server tests
I20150612-08:51:20.451(10)? before each

"before each 2" line means a nested beforeEach (in a describe block) started executing. I would expect there to be a before each 2 done log line before seeing another "before each".

This causes trouble with sinon spies (as they are being re-wrapped when the other beforeEach starts executing which makes sinon throw an exception).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant