Fix broken iOS tests
This commit is contained in:
parent
c0d28a0448
commit
9c549e19d1
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