Skip to content

Commit 906501c

Browse files
author
aesteve
committed
small refacto
1 parent 18f6539 commit 906501c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/test/java/io/reactiverse/awssdk/ProxyTest.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,14 @@ public void testGetThroughProxy(VertxTestContext ctx) throws Exception {
8383
.credentialsProvider(credentialsProvider);
8484
HttpClientOptions throughProxyOptions = new HttpClientOptions().setProxyOptions(new ProxyOptions().setHost(PROXY_HOST).setPort(PROXY_PORT));
8585
KinesisAsyncClient kinesis = VertxSdkClient.withVertx(builder, throughProxyOptions, vertx.getOrCreateContext()).build();
86-
CompletableFuture<ListStreamsResponse> fut = kinesis.listStreams();
8786
assertEquals(proxyAccess.get(), 0, "Proxy access count should have been reset");
88-
fut.handle((res, err) -> {
89-
assertTrue(proxyAccess.get() > 0, "Requests should have been transferred through proxy");
90-
ctx.completeNow();
91-
return null;
92-
});
87+
kinesis
88+
.listStreams()
89+
.handle((res, err) -> {
90+
assertTrue(proxyAccess.get() > 0, "Requests should have been transferred through proxy");
91+
ctx.completeNow();
92+
return null;
93+
});
9394
}
9495

9596
}

0 commit comments

Comments
 (0)