Skip to content

Commit b10dd74

Browse files
committed
AssertOK
1 parent 9e3d4bf commit b10dd74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/AbstractSearchableSnapshotsRestTestCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void testSearchResults() throws Exception {
138138
public void testSearchResultsWhenFrozen() throws Exception {
139139
runSearchableSnapshotsTest((restoredIndexName, numDocs) -> {
140140
final Request freezeRequest = new Request(HttpPost.METHOD_NAME, restoredIndexName + "/_freeze");
141-
client().performRequest(freezeRequest);
141+
assertOK(client().performRequest(freezeRequest));
142142
ensureGreen(restoredIndexName);
143143
for (int i = 0; i < 10; i++) {
144144
assertSearchResults(restoredIndexName, numDocs, Boolean.FALSE);
@@ -149,11 +149,11 @@ public void testSearchResultsWhenFrozen() throws Exception {
149149
public void testCloseAndReopen() throws Exception {
150150
runSearchableSnapshotsTest((restoredIndexName, numDocs) -> {
151151
final Request closeRequest = new Request(HttpPost.METHOD_NAME, restoredIndexName + "/_close");
152-
client().performRequest(closeRequest);
152+
assertOK(client().performRequest(closeRequest));
153153
ensureGreen(restoredIndexName);
154154

155155
final Request openRequest = new Request(HttpPost.METHOD_NAME, restoredIndexName + "/_open");
156-
client().performRequest(openRequest);
156+
assertOK(client().performRequest(openRequest));
157157
ensureGreen(restoredIndexName);
158158

159159
for (int i = 0; i < 10; i++) {

0 commit comments

Comments
 (0)