Fall back to documents container

Convenient for test target.
This commit is contained in:
Davide De Rosa 2019-03-18 10:59:15 +01:00
parent d983362815
commit de944acabb
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class InfrastructureTests: XCTestCase {
func testParsing() {
print(infra.pools)
XCTAssertEqual(infra.pools.count, 53)
XCTAssertEqual(infra.pools.count, 48)
}
func testIdentifier() {

View File

@ -56,7 +56,8 @@ class GroupConstants {
private static var containerURL: URL {
guard let url = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup) else {
fatalError("Unable to access App Group container")
print("Unable to access App Group container")
return FileManager.default.userURL(for: .documentDirectory, appending: nil)
}
return url
}