remove persistentstores during DataStack deinitialization to prevent warnings in Unit tests during teardown

This commit is contained in:
John Estropia committed 2020-05-26 09:43:39 +09:00
1 parent 0eb9b6393d
commit 4a97d5a8dc
6 files changed
+54 -17

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ class BaseTestCase: XCTestCase {
XCTFail(error.coreStoreDumpString)
}
self.addTeardownBlock {
stack.unsafeRemoveAllPersistentStoresAndWait()
}
}
@nonobjc