From 2fb34ed7d6285bc7c2931a123df468516aa425df Mon Sep 17 00:00:00 2001 From: Tianli Feng Date: Tue, 29 Mar 2022 22:06:36 -0700 Subject: [PATCH] Correct a typo in unit test Signed-off-by: Tianli Feng --- .../action/RenamedTimeoutRequestParameterTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/test/java/org/opensearch/action/RenamedTimeoutRequestParameterTests.java b/server/src/test/java/org/opensearch/action/RenamedTimeoutRequestParameterTests.java index 77eae064d1bbe..e3dd617505017 100644 --- a/server/src/test/java/org/opensearch/action/RenamedTimeoutRequestParameterTests.java +++ b/server/src/test/java/org/opensearch/action/RenamedTimeoutRequestParameterTests.java @@ -150,25 +150,25 @@ private FakeRestRequest getRestRequestWithNewParam() { } private FakeRestRequest getRestRequestWithBodyWithWrongValues() { - FakeRestRequest request = getFakeRestReqeustWithBody(); + FakeRestRequest request = getFakeRestRequestWithBody(); request.params().put("cluster_manager_timeout", randomFrom("1h", "2m")); request.params().put("master_timeout", "3s"); return request; } private FakeRestRequest getRestRequestWithBodyWithDeprecatedParam() { - FakeRestRequest request = getFakeRestReqeustWithBody(); + FakeRestRequest request = getFakeRestRequestWithBody(); request.params().put("master_timeout", "3s"); return request; } private FakeRestRequest getRestRequestWithBodyWithNewParam() { - FakeRestRequest request = getFakeRestReqeustWithBody(); + FakeRestRequest request = getFakeRestRequestWithBody(); request.params().put("cluster_manager_timeout", "2m"); return request; } - private FakeRestRequest getFakeRestReqeustWithBody() { + private FakeRestRequest getFakeRestRequestWithBody() { return new FakeRestRequest.Builder(NamedXContentRegistry.EMPTY).withContent(new BytesArray("{}"), XContentType.JSON).build(); } }