-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Not ending test.. #476
Comments
This sort of thing is pretty hard for us to diagnose/debug without something we can run and look at. Please provide a reproduction... |
Here is an
And
Thank you. |
I really do not understand what is being reported here, please help me help you.
What does this mean? A specific test never ends, the invocation of Again, I highly doubt that we will be able to help without a runnable demo of this issue... |
Now I have updated the
And the test didn't ended all day long...
And the
I think the issue is may still related with |
I've also experienced this issue in the last days, just after upgrading to Ember 3.9 (from 3.4). The test suite just repeated every time and never came to an end... travis cancelled it after 2 hours. After countless hours of digging I found out it was because of an 2 year old integration test that is still using the old syntax with import { later } from '@ember/runloop';
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import jQuery from 'jquery';
moduleForComponent('form', '...', {
integration: true,
});
test('...', function(assert) {
const done = assert.async();
assert.expect(2);
this.render(hbs`Hello World`);
jQuery('button', this.element).click();
later(() => {
assert.ok(true, '...');
done();
}, 100);
}); I know that this test looks very strange ^^. Anyway, if I just removed one line it was working again - even when I tried to remove the @AdminDev826 Maybe you can check if that's also the cause in your project? Since you mention it does work when running a single test - maybe it was just not the one that's causing the errors. Also check for tests using Really difficult to find this issue... would've been helpful to have some kind of warning that we still have tests using legacy functionality. |
I encountered a hang today when executing
@rwjblue
|
same here, test does not timeout even with assert.timeout. i debugged it to the following: qunit sets up a timeout handler for the current await promise in the test: not that it only supports one timeout handler. ember rsvp calls the test adapter startAsync which then sets up another timeout handler. this one is called e.g. by the router in transitionto and might not resolve. this one timeous out in qunit. but qunit keeps track of all promises that did not resolve. therefore test.pauses.size > 0 |
doing
fixes it for me |
ember test --filter='acceptance'
Test won't end. (Test doesn't any progresses further) ...
But when I try to run test one by one, then all works fine.
The text was updated successfully, but these errors were encountered: