Skip to content

Commit 8c9f54c

Browse files
authored
Update TestFileManager.swift
1 parent 8cea9ea commit 8c9f54c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Tests/Foundation/Tests/TestFileManager.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,8 @@ class TestFileManager : XCTestCase {
759759
let file = subdirectory.appendingPathComponent("file", isDirectory: false)
760760
try? fm.removeItem(at: root)
761761

762-
XCTAssertNoThrow(fm.createDirectory(at: subdirectory, withIntermediateDirectories: true, attributes: nil))
763-
XCTAssertNoThrow(fm.createFile(atPath: file.path, contents: Data(), attributes: nil))
762+
try XCTAssertNoThrow(fm.createDirectory(at: subdirectory, withIntermediateDirectories: true, attributes: nil))
763+
try XCTAssertNoThrow(fm.createFile(atPath: file.path, contents: Data(), attributes: nil))
764764
let contents = try XCTUnwrap(fm.contentsOfDirectory(at: root, includingPropertiesForKeys: [.isDirectoryKey], options: [.skipsHiddenFiles]))
765765
XCTAssertEqual(contents.count, 2)
766766
XCTAssertEqual(contents, [subdirectory, file])

0 commit comments

Comments
 (0)