@@ -147,10 +147,10 @@ final class MockPeerEventTests {
147147 configuration: clientConfiguration
148148 )
149149
150- try ? await Task . sleep ( for: . milliseconds( 100 ) )
151- await #expect ( throws : Error . self ) {
152- try clientConnection . connect ( to : listenAddress )
153- try ? await Task . sleep ( for : . milliseconds ( 200 ) )
150+ try ? await Task . sleep ( for: . milliseconds( 50 ) )
151+ try clientConnection . connect ( to : listenAddress )
152+ try ? await Task . sleep ( for : . milliseconds ( 1000 ) )
153+ #expect ( throws : Error . self ) {
154154 let stream1 = try clientConnection. createStream ( )
155155 try stream1. send ( data: Data ( " test data 1 " . utf8) )
156156 }
@@ -253,10 +253,9 @@ final class MockPeerEventTests {
253253 registration: registration,
254254 configuration: clientConfiguration
255255 )
256- try ? await Task . sleep ( for: . milliseconds( 100 ) )
257- await #expect( throws: Error . self) {
258- try clientConnection. connect ( to: listenAddress)
259- try ? await Task . sleep ( for: . milliseconds( 200 ) )
256+ try clientConnection. connect ( to: listenAddress)
257+ try ? await Task . sleep ( for: . milliseconds( 1000 ) )
258+ #expect( throws: Error . self) {
260259 let stream1 = try clientConnection. createStream ( )
261260 try stream1. send ( data: Data ( " test data 1 " . utf8) )
262261 }
0 commit comments