Skip to content

Commit

Permalink
OKAPI-887 Fix unit tests sporadically fails (#970)
Browse files Browse the repository at this point in the history
Faster upload test to avoid timeouts. Wait longer on process launch test
  • Loading branch information
adamdickmeiss committed Sep 17, 2020
1 parent b26d6e4 commit da9ee38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion okapi-core/src/test/java/org/folio/okapi/ProxyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public void testUpload(TestContext context) {
private void upload(TestContext context, String tenant, String uri, int offset) {
Async async = context.async();
int bufSz = 10000;
long bufCnt = 100000;
long bufCnt = 1000;
long total = bufSz * bufCnt;
logger.info("Sending {} GB", total / 1e9);
HttpClient client = vertx.createHttpClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void tearDown(TestContext context) {
}

private ModuleHandle createModuleHandle(LaunchDescriptor desc, int port) {
desc.setWaitIterations(5);
desc.setWaitIterations(15);
ProcessModuleHandle pmh = new ProcessModuleHandle(vertx, desc, ports, port);
return pmh;
}
Expand Down

0 comments on commit da9ee38

Please sign in to comment.