practicalmeteor / meteor-mocha

Depreciated - Write meteor package tests with mocha and run them in the browser or from the command line with spacejam.
https://atmospherejs.com/practicalmeteor/mocha
Other
41 stars 13 forks source link

Timeout of 2000ms exceeded when rebuilding - fixed on reload #79

Open xwilders opened 7 years ago

xwilders commented 7 years ago

Almost every time I make a change to a server test, Meteor server restarts and the first test reports a timeout error. I then need to manually refresh to see my tests run properly.

Increasing the default timeout high enough, I'll observe the very first test taking >2000ms until I reload. This happens regardless of which test runs first (even if the tests are very quick). I've profiled the server restart time - it takes between 10-20s to restart, mainly due to loading every atmosphere package again.

It seems to me that the tests are run when the server is still restarting, and the slow-down is added as part of the first test's execution time.

thebarty commented 7 years ago

just confirming that I see that a lot too

DanceParty commented 7 years ago

I am seeing this a lot on my insert/remove tests. Any reason why?

EDIT:

image

maiduchuy commented 7 years ago

Any progress on this issue?

DanceParty commented 7 years ago

@maiduchuy Not on my end, just removed the tests for now.

xwilders commented 7 years ago

@maiduchuy Likewise, trying to migrate off Meteor for testing because of multiple problems like these.