Meteor-Community-Packages / meteor-publication-collector

Test a Meteor publication by collecting its output.
https://atmospherejs.com/johanbrook/publication-collector
MIT License
33 stars 20 forks source link

Package doesn't handle limit/skip correctly #37

Open laddi opened 6 years ago

laddi commented 6 years ago

In the latest version of Meteor (1.7.x) the following error is thrown when collecting data from a publication published with limit and/or skip:

Error: Must use an ordered observe with skip or limit (i.e. 'addedBefore' for observeChanges or 'addedAt' for observe, instead of 'added').

This seems to originate within the package because the same publication works correctly outside of the test.

johanbrook commented 6 years ago

Good catch. Feel free to file a PR on this, if possible. Thanks!

laddi commented 6 years ago

Seems like that is easier said than done: #1643

Not sure how to tackle this. But it would be great if it could be sorted somehow... 😄