This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new b458a6aa3 test: port HTTP/2 backoff timeout fix (#980)
b458a6aa3 is described below

commit b458a6aa3298f02ed80a9d581d3a186c275349a2
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sun Mar 8 18:00:20 2026 +0800

    test: port HTTP/2 backoff timeout fix (#980)
    
    Port akka-http commit b3382778f by relaxing the backoff no-message 
expectation in Http2PersistentClientSpec.
    
    Co-authored-by: Copilot <[email protected]>
---
 .../pekko/http/impl/engine/http2/Http2PersistentClientSpec.scala      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2PersistentClientSpec.scala
 
b/http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2PersistentClientSpec.scala
index fcaa2b57b..9396fe16a 100644
--- 
a/http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2PersistentClientSpec.scala
+++ 
b/http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2PersistentClientSpec.scala
@@ -272,8 +272,8 @@ abstract class Http2PersistentClientSpec(tls: Boolean) 
extends PekkoSpecWithMate
           // 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()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to