@@ -88,15 +88,15 @@ struct SSEStreamFailureTests {
8888 func commentHeartbeatsRefreshStallDeadlineWithoutIncrementingEventDiagnostics( ) async throws {
8989 let bytes = DelayedByteStream ( chunks: [
9090 . init( delay: . zero, bytes: sseChunk ( minimalChunkJSON) ) ,
91- . init( delay: . milliseconds ( 250 ) , bytes: sseComment ( " keepalive " ) ) ,
92- . init( delay: . milliseconds ( 250 ) , bytes: sseComment ( " keepalive " ) ) ,
93- . init( delay: . milliseconds ( 250 ) , bytes: sseDone ( ) ) ,
91+ . init( delay: . seconds ( 1 ) , bytes: sseComment ( " keepalive " ) ) ,
92+ . init( delay: . seconds ( 1 ) , bytes: sseComment ( " keepalive " ) ) ,
93+ . init( delay: . seconds ( 1 ) , bytes: sseDone ( ) ) ,
9494 ] )
9595
9696 let completion = try await processSSEStream (
9797 bytes: bytes,
9898 provider: . custom( " test " ) ,
99- stallTimeout: . milliseconds( 500 )
99+ stallTimeout: . milliseconds( 2500 )
100100 ) { event, _ in
101101 event. data == " [DONE] " ? . complete : . continue
102102 }
@@ -196,7 +196,7 @@ struct SSEStreamFailureTests {
196196 try await processSSEStream (
197197 bytes: bytes,
198198 provider: . custom( " test " ) ,
199- stallTimeout: . seconds( 1 )
199+ stallTimeout: . seconds( 3 )
200200 ) { event, _ in
201201 event. data == " finish " ? . completeOnEOF : . continue
202202 }
0 commit comments