You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Async-first databases should be able to integrate with the mainline imposterRepository contract.
Actual behaviour
Most of the impsoterRepository contract is synchronous.
Steps to reproduce
Compare the imposterRepository contract test in this repo with the imposterRepository contract test in ibnc/mountebankMongo; the reported issues on that repo are because of the incompatible contract. The net result is errors when callsites expecting sync behavior receive a promise instead of the expected objects.
Desired Change
Furthering the move from the --datadir refactor so that imposterRepository is asynchronous so that promise-infected storage plugins are the default.
This will require work on the in-memory and datadir repository implementations, the callsites that consume the imposters, and tests.
Probably a wishlist or 2.11 target.
The text was updated successfully, but these errors were encountered:
Expected behaviour
Async-first databases should be able to integrate with the mainline imposterRepository contract.
Actual behaviour
Most of the impsoterRepository contract is synchronous.
Steps to reproduce
Compare the imposterRepository contract test in this repo with the imposterRepository contract test in ibnc/mountebankMongo; the reported issues on that repo are because of the incompatible contract. The net result is errors when callsites expecting sync behavior receive a promise instead of the expected objects.
Desired Change
Furthering the move from the --datadir refactor so that imposterRepository is asynchronous so that promise-infected storage plugins are the default.
This will require work on the in-memory and datadir repository implementations, the callsites that consume the imposters, and tests.
Probably a wishlist or 2.11 target.
The text was updated successfully, but these errors were encountered: