Skip to content

Commit 37f33fb

Browse files
committed
Added 500 status code in wipeDataStreams
1 parent 00a105a commit 37f33fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Elasticsearch/Tests/Utility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private static function wipeDataStreams(Client $client): void
397397
} catch (Exception $e) {
398398
// We hit a version of ES that doesn't serialize DeleteDataStreamAction.Request#wildcardExpressionsOriginallySpecified
399399
// field or that doesn't support data streams so it's safe to ignore
400-
if ($e->getCode() !== '404' && $e->getCode() !== '405') {
400+
if (!in_array($e->getCode(), ['404', '405', '500'])) {
401401
throw $e;
402402
}
403403
}

0 commit comments

Comments
 (0)