mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-14 21:03:51 +01:00
remove persistentstores during DataStack deinitialization to prevent warnings in Unit tests during teardown
This commit is contained in:
1 parent
0eb9b6393d
commit
4a97d5a8dc
6 files changed
+54
-17
No files matched your search
@@ -505,7 +505,12 @@ class DynamicModelTests: BaseTestDataTestCase {
|
||||
XCTFail()
|
||||
}
|
||||
)
|
||||
self.waitAndCheckExpectations()
|
||||
}
|
||||
|
||||
self.waitForExpectations(timeout: 10, handler: { _ in })
|
||||
|
||||
self.addTeardownBlock {
|
||||
dataStack.unsafeRemoveAllPersistentStoresAndWait()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user