From 3083997cb3679a7a916179885bb3d3531eb1e7f1 Mon Sep 17 00:00:00 2001 From: Roman Hanin Date: Tue, 8 Jun 2021 09:32:52 -0500 Subject: [PATCH] B2B-1832: Error when reindex Catalog Search index during the snapshot of elasticsearch - unit test fix --- .../Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php b/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php index 78e5b8ce32131..e36db5dcc196d 100644 --- a/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php +++ b/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php @@ -338,7 +338,7 @@ public function testCleanIndex() ->method('getIndexName') ->willReturnMap([[1, 'product', [1 => null], '_product_1_v0']]); - $this->client->expects($this->any()) + $this->client->expects($this->atLeastOnce()) ->method('indexExists') ->willReturnMap( [