Skip to content
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

Fixtures mutated and on new Barrels() the previous records are still present #58

Open
alekaizer opened this issue Jan 9, 2020 · 1 comment

Comments

@alekaizer
Copy link

alekaizer commented Jan 9, 2020

Barrels version: 1.6.5
Sails: 1.2.3
Adapter: Sails-Disk
inMemoryOnly: true

So I have this sails project, and I added tests. Everything works fine when run separately, but when merged and tried to run all the tests, I'm having issues creating new records. when i checked barrels.data, I noticed that the records created on the previous tests are loaded instead of the one that should be read from the fixtures files which is causing issue as I'm trying to create records that were already created on the previous tests set.

How to solve or prevent this? Shouldn't it be that on new Barrels() a new instance of barrels and a new read of the fixtures be made?

@bredikhin
Copy link
Owner

hello @alekaizer, thanks for your interest in Barrels. please make sure to read this: https://github.com/bredikhin/barrels#project-status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants