Commit 41902d3d authored by catch's avatar catch

Issue #2246447 by alexpott, xjm: Random failure in Drupal\search\Tests\SearchPageTextTest.

parent 1d8a302a
......@@ -66,7 +66,8 @@ function testSearchText() {
$limit = \Drupal::config('search.settings')->get('and_or_limit');
$keys = array();
for ($i = 0; $i < $limit + 1; $i++) {
$keys[] = $this->randomName(3);
// Use a key of 4 characters to ensure we never generate 'AND' or 'OR'.
$keys[] = $this->randomName(4);
if ($i % 2 == 0) {
$keys[] = 'OR';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment