The Solr backend requires a sleep() before proceeding after indexing. Just like in the BackendTestBase.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkalkbrenner created an issue. See original summary.

mkalkbrenner’s picture

Status: Active » Needs review
FileSize
4.85 KB
borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: 2821955.patch, failed testing.

mkalkbrenner’s picture

There were 2 failures:

1) Drupal\Tests\search_api\Kernel\Processor\AddHierarchyTest::testPreprocessIndexItemsTaxonomy
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 'entity:node/1:en'
-    1 => 'entity:node/2:en'
+    0 => 'entity:node/2:en'
 )

/var/www/html/core/tests/Drupal/KernelTests/KernelTestBase.php:1168
/var/www/html/modules/search_api/tests/src/Kernel/ResultsTrait.php:43
/var/www/html/modules/search_api/tests/src/Kernel/Processor/AddHierarchyTest.php:210

2) Drupal\Tests\search_api\Kernel\Processor\AddHierarchyTest::testPreprocessIndexItems
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => 'entity:node/5:en'
     1 => 'entity:node/6:en'
-    2 => 'entity:node/7:en'
-    3 => 'entity:node/8:en'
-    4 => 'entity:node/9:en'
 )

/var/www/html/core/tests/Drupal/KernelTests/KernelTestBase.php:1168
/var/www/html/modules/search_api/tests/src/Kernel/ResultsTrait.php:43
/var/www/html/modules/search_api/tests/src/Kernel/Processor/AddHierarchyTest.php:299

I get exactly the same errors on the Solr backend!

mkalkbrenner’s picture

Status: Needs work » Needs review
FileSize
4.46 KB
borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Let's get this in.

mkalkbrenner’s picture

Related issues: +#2822248: Execute ContentAccessTest on Solr backend

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Looks good, thanks!
Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.