Originally created by @evkalinin on GitHub (Nov 28, 2018).
I have a problem with early-deallocated fetched objects.
Please, can you see what is wrong?
https://github.com/clouddevil/CoreStore/blob/6859babd5c63b5dcd9d18034291d174db681c105/CoreStoreTests/IssueTests.swift#L53
and some tests for legacy storage are broken.
If you wish to use a shared store just call addStorage() on your own.
@JohnEstropia commented on GitHub (Nov 28, 2018):
You will never get the same store if you use the `BaseTestCase. prepareStack()` method because it generates a new UUID (thus a new sqlite file) for each call.
See: https://github.com/JohnEstropia/CoreStore/blob/develop/CoreStoreTests/BaseTests/BaseTestCase.swift#L53
If you wish to use a shared store just call `addStorage()` on your own.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @evkalinin on GitHub (Nov 28, 2018).
I have a problem with early-deallocated fetched objects.
Please, can you see what is wrong?
https://github.com/clouddevil/CoreStore/blob/6859babd5c63b5dcd9d18034291d174db681c105/CoreStoreTests/IssueTests.swift#L53
and some tests for legacy storage are broken.
@JohnEstropia commented on GitHub (Nov 28, 2018):
You will never get the same store if you use the
BaseTestCase. prepareStack()method because it generates a new UUID (thus a new sqlite file) for each call.See: https://github.com/JohnEstropia/CoreStore/blob/develop/CoreStoreTests/BaseTests/BaseTestCase.swift#L53
If you wish to use a shared store just call
addStorage()on your own.@evkalinin commented on GitHub (Nov 28, 2018):
Oh YES! thank you!!