Skip to content

Commit 93d13cd

Browse files
committed
Use a more reasonnable boun for Http2MYRServerTest
1 parent 8131fd0 commit 93d13cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vertx-core/src/test/java/io/vertx/tests/http/Http2MYRServerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import io.netty.handler.codec.http2.Http2Settings;
4242
import io.vertx.core.http.HttpServer;
4343
import io.vertx.core.http.HttpServerOptions;
44+
import io.vertx.test.core.Repeat;
4445
import org.junit.Test;
4546

4647
import java.net.InetSocketAddress;
@@ -195,6 +196,6 @@ public ChannelFuture connect(int port, String host, BiConsumer<ChannelHandlerCon
195196

196197
// Check the number of rst frame received before getting a go away
197198
assertEquals(receivedRstFrames.get(), maxRstFramePerWindow + 1);
198-
assertEquals(maxInflightRequests.get(), maxRstFramePerWindow + 1);
199+
assertTrue(maxInflightRequests.get() <= 2 * maxRstFramePerWindow );
199200
}
200201
}

0 commit comments

Comments
 (0)