vidigami / backbone-mongo

MongoDB storage for BackboneORM
http://vidigami.github.io/backbone-orm/backbone-mongo.html
MIT License
14 stars 8 forks source link

Fix intermittent test failures #11

Closed kmalakoff closed 10 years ago

kmalakoff commented 10 years ago

Two hypotheses:

1) they are due to test setup and cleanup not being perfect when option variants are being run one after another

2) they are due to a sequence returning incorrectly like MemoryCursor.buildFindQuery needing to merge query parameters

  1) hasMany (cache: undefined, query_cache: undefined, embed: true) Can manually delete a relationship by related_model (belongsTo) with unloaded model:
     Uncaught AssertionError: loaded correct model

  2) hasMany (cache: undefined, query_cache: undefined, embed: true) Can manually delete a relationship by array of related_model (belongsTo) with unloaded model:
     Uncaught AssertionError: loaded correct model

  3) hasMany (cache: undefined, query_cache: undefined, embed: true) Can query on related (one-way hasMany) models with included relations:
     Uncaught AssertionError: found model
forivall commented 10 years ago

solution 1 was implemented and needs to be double checked that this problem is fixed

forivall commented 10 years ago

Actually fixed; travis tests passing!