From fe1a0348221999cec97e778ce8d985b504dc896e Mon Sep 17 00:00:00 2001 From: Emily Toop Date: Mon, 6 Aug 2018 17:41:06 +0100 Subject: [PATCH] Fix broken iOS tests --- sdks/swift/Mentat/MentatTests/MentatTests.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sdks/swift/Mentat/MentatTests/MentatTests.swift b/sdks/swift/Mentat/MentatTests/MentatTests.swift index fca05e55..25a59378 100644 --- a/sdks/swift/Mentat/MentatTests/MentatTests.swift +++ b/sdks/swift/Mentat/MentatTests/MentatTests.swift @@ -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) }