-
Notifications
You must be signed in to change notification settings - Fork 2
do not test result order #1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea and implementation looks good, but there is a minor formatting issue where 3 spaces are used as indentation.
test/query.js
Outdated
@@ -4,6 +4,13 @@ var async = require('async'); | |||
// Call this function inside a `describe` block. Assumes that | |||
// `this.db` is set to be a ShareDB instance that supports certain | |||
// Mongo queries. | |||
|
|||
var sortSnapshot =function(snapshots) { | |||
return snapshots.sort(function (a, b) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent indentation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Nice one! Thanks @dcharbonnier and @curran |
Hooray! |
The order of the results does not matter on those cases and tests are randomly failing on sharedb-mongo due to this problem