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

Update test matrix to include 2.18, 3.4, 3.8, and 3.12 #247

Merged
merged 2 commits into from
Nov 11, 2019

Conversation

jacobq
Copy link
Contributor

@jacobq jacobq commented Nov 11, 2019

Cherry-picked from #246

Broadens test support matrix (Closes #242) and fixes test suite race condition with store.unloadAll that starts appearing in these newer versions (Closes #243).

@jacobq jacobq changed the title Fix race condition with unloadAll in tests Update test matrix to include 2.18, 3.4, 3.8, and 3.12 Nov 11, 2019
@backspace
Copy link
Collaborator

hmm these failures on Travis seem like they could be due to the old Node version…?

@jacobq
Copy link
Contributor Author

jacobq commented Nov 11, 2019

hmm these failures on Travis seem like they could be due to the old Node version…?

Oops, yes, that's due to the previous upgrade to PouchDB 7.1.1 (not me). That was a breaking change. I forced pushed and noted this.

BREAKING CHANGE: drop support for node 6.x

Actually, the upgrade to PouchDB 7.1.1 forces this
(see commit 28c5739)
The test labeled "creating an associated record stores
a reference to it in the parent" was failing intermittently
with the recently added ember LTS versions (e.g. 3.4)
when run with other tests under conditions "dont save hasMany"
and "sync". This problem appears to be caused by the
test logic not waiting for `store.unloadAll()` to complete.
The Ember Data API docs state that this function schedules
its work to be done during the next run loop, so this commit
wraps these calls with `Ember.run` to ensure that it finishes
before continuing.

See also:

* https://api.emberjs.com/ember-data/3.14/classes/Store/methods/unloadAll?anchor=unloadAll
* pouchdb-community#242
* pouchdb-community#243
@jacobq
Copy link
Contributor Author

jacobq commented Nov 11, 2019

I'm guessing that the subsequent failure has to do with the outdated .travis.yml inadvertently downgrading npm to v4.x. -- just force pushed again to see.

@backspace
Copy link
Collaborator

Excellent, thanks for the followthrough!

@backspace backspace merged commit 9916dae into pouchdb-community:master Nov 11, 2019
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

Successfully merging this pull request may close these issues.

2 participants