make testTimeoutSendExceptionWithDelayedResponse less timing sensitive

This commit is contained in:
Boaz Leskes 2016-02-03 11:09:50 +01:00
parent 60552732d1
commit 125029bf12
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ public abstract class AbstractSimpleTransportTestCase extends ESTestCase {
}); });
final CountDownLatch latch = new CountDownLatch(1); final CountDownLatch latch = new CountDownLatch(1);
TransportFuture<StringMessageResponse> res = serviceB.submitRequest(nodeA, "sayHelloTimeoutDelayedResponse", TransportFuture<StringMessageResponse> res = serviceB.submitRequest(nodeA, "sayHelloTimeoutDelayedResponse",
new StringMessageRequest("300ms"), TransportRequestOptions.builder().withTimeout(100).build(), new BaseTransportResponseHandler<StringMessageResponse>() { new StringMessageRequest("2m"), TransportRequestOptions.builder().withTimeout(100).build(), new BaseTransportResponseHandler<StringMessageResponse>() {
@Override @Override
public StringMessageResponse newInstance() { public StringMessageResponse newInstance() {
return new StringMessageResponse(); return new StringMessageResponse();