balderdashy / waterline-adapter-tests

API integration tests for Waterline adapters
MIT License
16 stars 41 forks source link

autoIncrement test sorts results by name, but tests the ordering using id #85

Closed tjwebb closed 9 years ago

tjwebb commented 9 years ago

https://travis-ci.org/waterlinejs/postgresql-adapter/builds/75205050#L1026

This test sorts on name, but tests the resulting order based on id. The test wrongly assumes that records are inserted serially rather than in parallel. Sort order of results should not be assumed in this way.