Skip to content

Commit

Permalink
tests: more reliable waiting for WINDOW_UPDATES (akka#3314)
Browse files Browse the repository at this point in the history
The 10.millis might otherwise just be too short.
  • Loading branch information
jrudolph authored Jul 2, 2020
1 parent 868d92a commit 38b123e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,9 @@ class Http2ServerSpec extends AkkaSpecWithMaterializer("""
sendDATA(1, false, ByteString("ping"))
reqProbe.expectUtf8EncodedString("ping")

pollForWindowUpdates(10.millis)
// default settings will schedule a connection and a stream-level window update
expectWindowUpdate()
expectWindowUpdate()

// check data flow for response entity
responseEntityProbe.sendNext(ByteString("pong"))
Expand Down

0 comments on commit 38b123e

Please sign in to comment.