Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Drupal\search\Tests\SearchPageTextTest
can randomly fail with:
* Drupal\search\Tests\SearchPageTextTest (39 pass(es), 1 fail(s), and 0 exception(s))
- [fail] [Other] "Raw "Your search used too many AND/OR expressions. Only the first 7 terms were included in this search." found" in SearchPageTextTest.php on line 76 of Drupal\search\Tests\SearchPageTextTest->testSearchText().
This rare random fail is due to:
$keys[] = $this->randomName(3);
if this generates an "AND" before an OR is added the test fails.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-comment.txt | 676 bytes | xjm |
#4 | 2246447-4.patch | 724 bytes | xjm |
#1 | 2246447.1.patch | 645 bytes | alexpott |
random-and-will-fail.patch | 839 bytes | alexpott | |
Comments
Comment #1
alexpottIf we increase the length to 4 this can never equal AND and spaces are not allowed in randomName().
Comment #2
xjmThis made me laugh.
Comment #3
catchCould a use a comment so no-one ever sets that back to 3.
Comment #4
xjmGood call.
Comment #6
catchComment #7
jhodgdonWow, good one! That can't be too common, I would think, but OK.
Comment #8
xjm@jhodgdon Well it did cause HEAD to fail this morning. :) 1/(26*36*36) or whatever is small but we have lots of test runs.
Comment #9
jhodgdonIndeed.
Comment #10
catchCommitted/pushed to 8.x, thanks!