File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -239,8 +239,7 @@ export class SSERetryScenario implements Scenario {
239239
240240 const tooEarly = actualDelay < minExpected ;
241241 const slightlyLate = actualDelay > maxExpected ;
242- const veryLate =
243- actualDelay > this . retryValue * this . VERY_LATE_MULTIPLIER ;
242+ const veryLate = actualDelay > this . retryValue * this . VERY_LATE_MULTIPLIER ;
244243 const withinTolerance = ! tooEarly && ! slightlyLate ;
245244
246245 let status : 'SUCCESS' | 'FAILURE' | 'WARNING' = 'SUCCESS' ;
Original file line number Diff line number Diff line change @@ -98,12 +98,14 @@ export class ServerSSEPollingScenario implements ClientScenario {
9898
9999 const reader = response . body
100100 . pipeThrough ( new TextDecoderStream ( ) )
101- . pipeThrough ( new EventSourceParserStream ( {
102- onRetry : ( retryMs : number ) => {
103- hasRetryField = true ;
104- retryValue = retryMs ;
105- }
106- } ) )
101+ . pipeThrough (
102+ new EventSourceParserStream ( {
103+ onRetry : ( retryMs : number ) => {
104+ hasRetryField = true ;
105+ retryValue = retryMs ;
106+ }
107+ } )
108+ )
107109 . getReader ( ) ;
108110
109111 // Read events with timeout
You can’t perform that action at this time.
0 commit comments