use of org.opensearch.action.support.replication.ReplicationRequest in project OpenSearch by opensearch-project.
the class UpdateRequestTests method runTimeoutTest.
private void runTimeoutTest(final GetResult getResult, final UpdateRequest updateRequest) {
final UpdateHelper.Result result = updateHelper.prepare(new ShardId("test", "", 0), updateRequest, getResult, OpenSearchTestCase::randomNonNegativeLong);
final Writeable action = result.action();
assertThat(action, instanceOf(ReplicationRequest.class));
final ReplicationRequest<?> request = (ReplicationRequest<?>) action;
assertThat(request.timeout(), equalTo(updateRequest.timeout()));
}
Aggregations