You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading beyond v0.4.12 has started to cause some of my model tests to hang and fail when I create another record in the test. I've tested this in almost all of the version beyond 0.4.12 up to the latest release and it is still happening.
Basically, with a user, and relationship model, I create the relationship in the test and test that the two different directions on the relationship are working properly. This is a more simplistic test than my actual one, but the issue is the same.
I'm using Ember 1.13.13, and Ember Data 1.13.15. This is happening with all of my other model tests that use a similar pattern.
I setup the test based on the ember-data test here:
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('user', {
// Specify the other units that are required for this test.
needs: ['model:relationship']
});
test('followers', function(assert) {
const store = this.store();
const user = this.subject();
let relationship, user2;
Ember.run( function() {
user2 = store.createRecord('user');
relationship = store.createRecord('relationship',{
followed: user,
follower: user2,
confirmed: true
});
});
assert.equal(user.get('inboundRelationships.length'), 1)
assert.equal(user2.get('outboundRelationships.length'), 1)
// error happens after test.
})
The text was updated successfully, but these errors were encountered:
Sorry for letting this linger so long, this issue is quite out of date and likely the underlying problem has been fixed. Initial implementation of the new ember-qunit API (from emberjs/rfcs#232) has landed and will be included in 3.0.0 release soon.
Closing as I do not believe that this issue can be addressed in the current ember-qunit@2 API.
Upgrading beyond v0.4.12 has started to cause some of my model tests to hang and fail when I create another record in the test. I've tested this in almost all of the version beyond 0.4.12 up to the latest release and it is still happening.
I've created a twiddle that demonstrates the error: https://ember-twiddle.com/70b2098e178cf10b87969ac4b28a5ba3?openFiles=tests.unit.models.user-test.js%2C
Basically, with a user, and relationship model, I create the relationship in the test and test that the two different directions on the relationship are working properly. This is a more simplistic test than my actual one, but the issue is the same.
I'm using Ember 1.13.13, and Ember Data 1.13.15. This is happening with all of my other model tests that use a similar pattern.
I setup the test based on the ember-data test here:
models/user.js
models/relationship.js
test:
The text was updated successfully, but these errors were encountered: