Skip to content

Commit e122fae

Browse files
committed
Fixes test failing on macOS when using URL(fileURLWithPath:isDirectory) and replaces it with URL(string:)
1 parent 95053e6 commit e122fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/swift/Tests/Flatbuffers/FlatBuffersMonsterWriterTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class FlatBuffersMonsterWriterTests: XCTestCase {
4848
}
4949

5050
func testReadFromOtherLanguages() {
51-
let url = URL(fileURLWithPath: path, isDirectory: true)
51+
let url = URL(string: path)!
5252
.appendingPathComponent("monsterdata_test")
5353
.appendingPathExtension("mon")
5454
let data = try! Data(contentsOf: url)

0 commit comments

Comments
 (0)