Skip to content

Commit bd49efd

Browse files
author
Wasim
committed
test: skip setTimes tests on Windows
1 parent bb3d898 commit bd49efd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Tests/NIOFSIntegrationTests/FileSystemTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ final class FileSystemTests: XCTestCase {
7272

7373

7474
func testSetLastAccessAndDataModificationTimes() async throws {
75+
#if os(Windows)
76+
throw XCTSkip("setTimes is not available on Windows")
77+
#endif
7578
let path = try await self.fs.temporaryFilePath()
7679
try await self.fs.withFileHandle(forWritingAt: path, options: .newFile(replaceExisting: false)) { _ in }
7780

@@ -94,6 +97,9 @@ final class FileSystemTests: XCTestCase {
9497
}
9598

9699
func testSetLastAccessTime() async throws {
100+
#if os(Windows)
101+
throw XCTSkip("setTimes is not available on Windows")
102+
#endif
97103
let path = try await self.fs.temporaryFilePath()
98104
try await self.fs.withFileHandle(forWritingAt: path, options: .newFile(replaceExisting: false)) { _ in }
99105

@@ -111,6 +117,9 @@ final class FileSystemTests: XCTestCase {
111117
}
112118

113119
func testSetLastDataModificationTime() async throws {
120+
#if os(Windows)
121+
throw XCTSkip("setTimes is not available on Windows")
122+
#endif
114123
let path = try await self.fs.temporaryFilePath()
115124
try await self.fs.withFileHandle(forWritingAt: path, options: .newFile(replaceExisting: false)) { _ in }
116125

0 commit comments

Comments
 (0)