From e8f1cbd51fdfd10a5b0e6e3232d2663ae69e953b Mon Sep 17 00:00:00 2001 From: mcdruid Date: Fri, 25 Nov 2022 17:19:18 +0000 Subject: [PATCH] Issue #2397691 by alexpott, poker10, Sivaji_Ganesh_Jojodae, webchick: Random fail in testNodeTermCreationAndDeletion() --- modules/taxonomy/taxonomy.test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 7c7c1111ace..0d18f2a93a3 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -661,10 +661,13 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $instance['widget'] = array('type' => 'taxonomy_autocomplete'); $instance['bundle'] = 'page'; field_create_instance($instance); + // Prefix the terms with a letter to ensure there is no clash in the first + // three letters. + // @see https://www.drupal.org/node/2397691 $terms = array( - 'term1' => $this->randomName(), - 'term2' => $this->randomName() . ', ' . $this->randomName(), - 'term3' => $this->randomName(), + 'term1' => 'a' . $this->randomName(), + 'term2' => 'b' . $this->randomName() . ', ' . $this->randomName(), + 'term3' => 'c' . $this->randomName(), ); $edit = array();