mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
Problem with early-deallocated fetched objects #246
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
6859babd5c/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!!