Fix broken iOS tests
This commit is contained in:
parent
d61e070e08
commit
fe1a034822
1 changed files with 2 additions and 4 deletions
|
@ -35,10 +35,8 @@ class MentatTests: XCTestCase {
|
|||
|
||||
// test that a store can be opened in a specific location
|
||||
func testOpenStoreInLocation() {
|
||||
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
|
||||
let documentsURL = paths[0]
|
||||
let storeURI = documentsURL.appendingPathComponent("test.db", isDirectory: false).absoluteString
|
||||
|
||||
let documentsURL = NSURL(fileURLWithPath: NSTemporaryDirectory())
|
||||
let storeURI = documentsURL.appendingPathComponent("test.db", isDirectory: false)!.absoluteString
|
||||
XCTAssertNotNil(try Mentat.open(storeURI: storeURI).raw)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue