loopbackio / loopback-datasource-juggler

Connect Loopback to various Data Sources
http://www.loopback.io
Other
277 stars 364 forks source link

Newly added relation test causes cassandra connector CI to fail #1446

Closed dhmlau closed 7 years ago

dhmlau commented 7 years ago

Cassandra connector CI is failing because

imported features relations hasMany through find over related model with options should find be filtered from option:

      Uncaught AssertionError: expected Array [ 'z:test', 'a:test' ] to equal Array [ 'a:test', 'z:test' ] (at '0', A has 'z:test' and B has 'a:test')
      + expected - actual

       [
      +  "a:test"
         "z:test"
      -  "a:test"
       ]

      at Assertion.fail (node_modules/should/cjs/should.js:258:17)
      at Assertion.value (node_modules/should/cjs/should.js:335:19)
      at node_modules/loopback-datasource-juggler/test/relations.test.js:959:27

I think it is related to this PR: https://github.com/strongloop/loopback-datasource-juggler/pull/1426

cc @ssh24

ssh24 commented 7 years ago

Issue fixed with #1449