Problem/Motivation

Seen this a couple of times recently.

https://git.drupalcode.org/project/drupal/-/jobs/11136550

---- Drupal\Tests\Core\Mail\Plugin\Mail\SymfonyMailerTest ----
Status      Duration Info                                                                               
--------------------------------------------------------------------------------------------------------
Fail          0.016s testFormatResemblesHtml                                                         
Pass          0.008s testMail with data set "defaults"                                               
Pass          0.002s testMail with data set "line endings in subject"                                
Pass           <1 ms testMail with data set "multiple comma-separated recipients"                    
Failure              *** Process execution output ***                                                
    PHPUnit 12.5.14 by Sebastian Bergmann and contributors.
    
    Runtime:       PHP 8.5.8
    Configuration: /builds/core/phpunit.xml.dist
    
    F...                                                                4 / 4 (100%)
    
    Time: 00:00.027, Memory: 10.00 MB
    
    Symfony Mailer (Drupal\Tests\Core\Mail\Plugin\Mail\SymfonyMailer)
     ✘ Format resembles html
       ┐
       ├ Failed asserting that two strings are equal.
       ┊ ---·Expected
       ┊ +++·Actual
       ┊ @@ @@
       ┊  '...a

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3612945

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

catch created an issue. See original summary.

catch’s picture

Title: [random failure] SymfonyMailerTes » [random failure] SymfonyMailerTest
Parent issue: » #2829040: [meta] Known intermittent, random, and environment-specific test failures

daffie made their first commit to this issue’s fork.

daffie’s picture

Status: Active » Needs review

Changed from testing with randomString() to testing with randomMachineName().

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Nice find!

  • catch committed 4a82a7b7 on 11.x
    fix: #3612945 [random failure] SymfonyMailerTest
    
    By: catch
    By: daffie
    (...

  • catch committed cec10ae5 on main
    fix: #3612945 [random failure] SymfonyMailerTest
    
    By: catch
    By: daffie
    

  • catch committed 3dbf1d02 on 11.4.x
    fix: #3612945 [random failure] SymfonyMailerTest
    
    By: catch
    By: daffie
    (...
catch’s picture

Version: main » 11.4.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to main, 11.x, and 11.4.x ,thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.