File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/test/java/io/reactiverse/awssdk Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,14 @@ public void testGetThroughProxy(VertxTestContext ctx) throws Exception {
83
83
.credentialsProvider (credentialsProvider );
84
84
HttpClientOptions throughProxyOptions = new HttpClientOptions ().setProxyOptions (new ProxyOptions ().setHost (PROXY_HOST ).setPort (PROXY_PORT ));
85
85
KinesisAsyncClient kinesis = VertxSdkClient .withVertx (builder , throughProxyOptions , vertx .getOrCreateContext ()).build ();
86
- CompletableFuture <ListStreamsResponse > fut = kinesis .listStreams ();
87
86
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
+ });
93
94
}
94
95
95
96
}
You can’t perform that action at this time.
0 commit comments