File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -254,21 +254,17 @@ struct AsyncSocketTests {
254
254
#endif
255
255
256
256
@Test
257
- func testMessageSequence ( ) async throws {
257
+ func messageSequence_receives_messages ( ) async throws {
258
258
let ( socket, port) = try await AsyncSocket . makeLoopbackDatagram ( )
259
259
var messages = socket. messages
260
260
261
- async let received = [ messages. next ( ) , messages . next ( ) ]
261
+ async let received = messages. next ( )
262
262
263
263
let client = try await AsyncSocket . makeLoopbackDatagram ( ) . 0
264
264
try await client. sendString ( " Fish 🐡 " , to: . loopback( port: port) )
265
- try await client. sendString ( " Chips 🍟 " , to: . loopback( port: port) )
266
265
267
266
#expect(
268
- try await received. compactMap { try $0? . payloadString } == [
269
- " Fish 🐡 " ,
270
- " Chips 🍟 "
271
- ]
267
+ try await received? . payloadString == " Fish 🐡 "
272
268
)
273
269
}
274
270
}
You can’t perform that action at this time.
0 commit comments