Skip to content

Commit

Permalink
Correct a typo in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Mar 30, 2022
1 parent a8b20ca commit 2fb34ed
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 2fb34ed

Please sign in to comment.