testFeedUpdateFields
fail: [Other] Line 49 of core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php:
The non scheduled feed has not been updated. It does not show "x x ago" as last update.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2861067-5.patch | 782 bytes | Anonymous (not verified) |
| #3 | pseudorandom-2861067-3-fail.patch | 1.17 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedvaplas created an issue. See original summary.
Comment #2
xjmThis also happened in HEAD (last March 11): https://www.drupal.org/pift-ci-job/619499
Comment #3
Anonymous (not verified) commentedAha! What if just the
randomMachineName()is generating value with 'ago' from time to time?The patch reproduces this fail in 49 line :)
Comment #5
Anonymous (not verified) commentedThis code confirms the fact that sometimes this can happen:
Quick solution - just override randomMachineName().
Comment #6
dawehnerThis catch!
Comment #9
catchCommitted/pushed to 8.4.x, and cherry-picked to 8.3.x, thanks!
I was going to ask for a more generic solution, but I think the more generic solution is #2571183: Deprecate random() usage in tests to avoid random test failures and that's still under discussion. So just adding it as a related issue.