Skip to content

Commit

Permalink
fix: Too tight timeout in Http2PersistentClientSpec for failing with …
Browse files Browse the repository at this point in the history
…backoff #4205
  • Loading branch information
johanandren committed Jan 5, 2023
1 parent cb3612b commit d430bc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ abstract class Http2PersistentClientSpec(tls: Boolean) extends AkkaSpecWithMater
// need some demand on response side, otherwise, no requests will be pulled in
client.responsesIn.request(1)
if (withBackoff) {
// not immediate when using backoff
client.responsesIn.expectNoMessage(clientSettings.http2Settings.baseConnectionBackoff / 2)
// not immediate when using backoff, 4 retries before failing, backoff is 300-800ms (so at least 1.2s)
client.responsesIn.expectNoMessage(clientSettings.http2Settings.baseConnectionBackoff * 4)
}
client.responsesIn.expectError()
client.requestsOut.expectCancellation()
Expand Down

0 comments on commit d430bc2

Please sign in to comment.