[wp-trac] [WordPress Trac] #37371: Reduce reliance on randomness in tests

WordPress Trac noreply at wordpress.org
Sat Sep 11 19:10:30 UTC 2021


#37371: Reduce reliance on randomness in tests
----------------------------------------+-----------------------------
 Reporter:  johnbillion                 |       Owner:  johnbillion
     Type:  enhancement                 |      Status:  accepted
 Priority:  lowest                      |   Milestone:  Future Release
Component:  Build/Test Tools            |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------
Changes (by johnillo):

 * Attachment "37371.2.diff" added.

 Replace other `rand_str()` and `rand()` calls with static string to
 eliminate unnecessary randomness in tests. This is my first patch.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37371>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list