File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ struct AsyncSocketTests {
74
74
try await task. value
75
75
}
76
76
77
- @Test
77
+ @Test ( . disabled ( " problematic test as file descriptor can be re-opened by another parallel test " ) )
78
78
func socketReadByte_ThrowsDisconnected_WhenSocketIsClosed( ) async throws {
79
79
let s1 = try await AsyncSocket . make ( )
80
80
try s1. close ( )
@@ -101,7 +101,7 @@ struct AsyncSocketTests {
101
101
}
102
102
}
103
103
104
- @Test
104
+ @Test ( . disabled ( " problematic test as file descriptor can be re-opened by another parallel test " ) )
105
105
func socketReadChunk_ThrowsDisconnected_WhenSocketIsClosed( ) async throws {
106
106
let s1 = try await AsyncSocket . make ( )
107
107
try s1. close ( )
@@ -141,7 +141,7 @@ struct AsyncSocketTests {
141
141
}
142
142
}
143
143
144
- @Test
144
+ @Test ( . disabled ( " problematic test as file descriptor can be re-opened by another parallel test " ) )
145
145
func socketWrite_ThrowsDisconnected_WhenSocketIsClosed( ) async throws {
146
146
let s1 = try await AsyncSocket . make ( )
147
147
try s1. close ( )
@@ -160,17 +160,8 @@ struct AsyncSocketTests {
160
160
}
161
161
}
162
162
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
-
172
163
@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 {
174
165
let s1 = try await AsyncSocket . make ( )
175
166
176
167
try s1. close ( )
You can’t perform that action at this time.
0 commit comments