fix timeout assertion in requestconvertertests
This commit is contained in:
parent
3a555da34d
commit
335d268a66
|
@ -1534,7 +1534,6 @@ public class RequestConvertersTests extends ESTestCase {
|
||||||
IndicesOptions indicesOptions = setRandomIndicesOptions(IndicesOptions.strictExpandOpen(), expectedParams);
|
IndicesOptions indicesOptions = setRandomIndicesOptions(IndicesOptions.strictExpandOpen(), expectedParams);
|
||||||
RemoveIndexLifecyclePolicyRequest req = new RemoveIndexLifecyclePolicyRequest(Arrays.asList(indices), indicesOptions);
|
RemoveIndexLifecyclePolicyRequest req = new RemoveIndexLifecyclePolicyRequest(Arrays.asList(indices), indicesOptions);
|
||||||
setRandomMasterTimeout(req::setMasterTimeout, TimedRequest.DEFAULT_MASTER_NODE_TIMEOUT, expectedParams);
|
setRandomMasterTimeout(req::setMasterTimeout, TimedRequest.DEFAULT_MASTER_NODE_TIMEOUT, expectedParams);
|
||||||
setRandomTimeoutTimeValue(req::setTimeout, TimedRequest.DEFAULT_ACK_TIMEOUT, expectedParams);
|
|
||||||
|
|
||||||
Request request = RequestConverters.removeIndexLifecyclePolicy(req);
|
Request request = RequestConverters.removeIndexLifecyclePolicy(req);
|
||||||
assertThat(request.getMethod(), equalTo(HttpDelete.METHOD_NAME));
|
assertThat(request.getMethod(), equalTo(HttpDelete.METHOD_NAME));
|
||||||
|
|
Loading…
Reference in New Issue