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 {
254254#endif
255255
256256 @Test
257- func testMessageSequence ( ) async throws {
257+ func messageSequence_receives_messages ( ) async throws {
258258 let ( socket, port) = try await AsyncSocket . makeLoopbackDatagram ( )
259259 var messages = socket. messages
260260
261- async let received = [ messages. next ( ) , messages . next ( ) ]
261+ async let received = messages. next ( )
262262
263263 let client = try await AsyncSocket . makeLoopbackDatagram ( ) . 0
264264 try await client. sendString ( " Fish 🐡 " , to: . loopback( port: port) )
265- try await client. sendString ( " Chips 🍟 " , to: . loopback( port: port) )
266265
267266 #expect(
268- try await received. compactMap { try $0? . payloadString } == [
269- " Fish 🐡 " ,
270- " Chips 🍟 "
271- ]
267+ try await received? . payloadString == " Fish 🐡 "
272268 )
273269 }
274270}
You can’t perform that action at this time.
0 commit comments