Skip to content

Commit

Permalink
Update README.md on running test with property key vertx.httpPort
Browse files Browse the repository at this point in the history
  • Loading branch information
percyashu committed Dec 4, 2023
1 parent f750fcd commit fbea9f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Runs the tests
> mvn test
```

Tests can be run with specified httpPort.

```
> mvn test -Dvertx.httpPort=8888
```

Vert.x supports native transport on BSD and Linux, to run the tests with native transport

```
Expand Down
1 change: 1 addition & 0 deletions src/test/java/io/vertx/core/http/HttpTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class HttpTestBase extends VertxTestBase {

public static final String DEFAULT_HTTP_HOST = "localhost";
public static final int DEFAULT_HTTP_PORT = Integer.parseInt(System.getProperty("vertx.httpPort", "8080"));
public static final String DEFAULT_HTTP_HOST_AND_PORT = System.getProperty("vertx.httpHostPort", "localhost:8080");
public static final String DEFAULT_HTTPS_HOST = "localhost";
public static final int DEFAULT_HTTPS_PORT = 4043;
public static final String DEFAULT_HTTPS_HOST_AND_PORT = "localhost:4043";
Expand Down

0 comments on commit fbea9f7

Please sign in to comment.