File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
src/test/java/io/vertx/core/http Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ public class Http2ClientTimeoutTest extends HttpClientTimeoutTest {
1414
1515 @ Override
1616 protected HttpServerOptions createBaseServerOptions () {
17- return Http2ServerTest .createHttp2ServerOptions (HttpTestBase .DEFAULT_HTTPS_PORT , HttpTestBase .DEFAULT_HTTPS_HOST );
17+ return Http2ServerTest
18+ .createHttp2ServerOptions (HttpTestBase .DEFAULT_HTTPS_PORT , HttpTestBase .DEFAULT_HTTPS_HOST )
19+ .setInitialSettings (new Http2Settings ().setMaxConcurrentStreams (5 ));
1820 }
1921
2022 @ Override
Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ public void testConnectTimeoutDoesFire() throws Exception {
3737 server .requestHandler (req -> {
3838 req .response ().end ();
3939 });
40- server .connectionHandler (conn -> {
41- if (conn .getWindowSize () != -1 ) {
42- conn .updateSettings (new Http2Settings ().setMaxConcurrentStreams (5 ));
43- }
44- });
4540 startServer (testAddress );
4641 List <HttpClientRequest > requests = new ArrayList <>();
4742 for (int i = 0 ;i < 5 ;i ++) {
@@ -64,11 +59,6 @@ public void testConnectTimeoutDoesNotFire() throws Exception {
6459 server .requestHandler (req -> {
6560 req .response ().end ();
6661 });
67- server .connectionHandler (conn -> {
68- if (conn .getWindowSize () != -1 ) {
69- conn .updateSettings (new Http2Settings ().setMaxConcurrentStreams (5 ));
70- }
71- });
7262 startServer (testAddress );
7363 List <HttpClientRequest > requests = new ArrayList <>();
7464 for (int i = 0 ;i < 5 ;i ++) {
You can’t perform that action at this time.
0 commit comments