summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-04-26 10:42:45 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-04-26 10:42:45 -0700
commit3a928db5053d17b36d73af9689059e4be5b8dcb6 (patch)
tree8421642b1438739c6bef9cb09ef8919b13803257
parenta097b499251aea0f5965e3ed6c3bc60d8b385e2a (diff)
downloadbrdo-3a928db5053d17b36d73af9689059e4be5b8dcb6.tar.gz
brdo-3a928db5053d17b36d73af9689059e4be5b8dcb6.tar.bz2
Issue #1541792 follow-up by chx, Berdir, xjm: Fix for random test values occasionally failing.
-rw-r--r--modules/field/modules/list/tests/list.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/field/modules/list/tests/list.test b/modules/field/modules/list/tests/list.test
index e77d8c602..7a0f46c6d 100644
--- a/modules/field/modules/list/tests/list.test
+++ b/modules/field/modules/list/tests/list.test
@@ -143,7 +143,9 @@ class ListDynamicValuesTestCase extends FieldTestCase {
$this->instance = field_create_instance($this->instance);
$this->test = array(
'id' => mt_rand(1, 10),
- 'vid' => mt_rand(1, 10),
+ // Make sure this does not equal the ID so that
+ // list_test_dynamic_values_callback() always returns 4 values.
+ 'vid' => mt_rand(20, 30),
'bundle' => 'test_bundle',
'label' => $this->randomName(),
);