Skip to content

Commit d978e10

Browse files
committed
disabling problematic tests
1 parent 305fdcf commit d978e10

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

FlyingSocks/Tests/AsyncSocketTests.swift

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct AsyncSocketTests {
7474
try await task.value
7575
}
7676

77-
@Test
77+
@Test(.disabled("problematic test as file descriptor can be re-opened by another parallel test"))
7878
func socketReadByte_ThrowsDisconnected_WhenSocketIsClosed() async throws {
7979
let s1 = try await AsyncSocket.make()
8080
try s1.close()
@@ -101,7 +101,7 @@ struct AsyncSocketTests {
101101
}
102102
}
103103

104-
@Test
104+
@Test(.disabled("problematic test as file descriptor can be re-opened by another parallel test"))
105105
func socketReadChunk_ThrowsDisconnected_WhenSocketIsClosed() async throws {
106106
let s1 = try await AsyncSocket.make()
107107
try s1.close()
@@ -141,7 +141,7 @@ struct AsyncSocketTests {
141141
}
142142
}
143143

144-
@Test
144+
@Test(.disabled("problematic test as file descriptor can be re-opened by another parallel test"))
145145
func socketWrite_ThrowsDisconnected_WhenSocketIsClosed() async throws {
146146
let s1 = try await AsyncSocket.make()
147147
try s1.close()
@@ -160,17 +160,8 @@ struct AsyncSocketTests {
160160
}
161161
}
162162

163-
@Test
164-
func socketAccept_Throws_WhenSocketIsClosed() async throws {
165-
let s1 = try await AsyncSocket.make()
166-
167-
await #expect(throws: SocketError.self) {
168-
try await s1.accept()
169-
}
170-
}
171-
172163
@Test(.disabled("problematic test as file descriptor can be re-opened by another parallel test"))
173-
func socket_Throws_WhenAlreadyCLosed() async throws {
164+
func socket_Throws_WhenAlreadyClosed() async throws {
174165
let s1 = try await AsyncSocket.make()
175166

176167
try s1.close()

0 commit comments

Comments
 (0)