Skip to content

Commit

Permalink
Reduced the TTL values used for test data
Browse files Browse the repository at this point in the history
  • Loading branch information
avpaderno committed Feb 19, 2025
1 parent 66da3c9 commit aa0c6f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/apc_storage_base_test.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -193,23 +193,23 @@ class ApcStorageBaseTestCase extends BackdropWebTestCase {
// Avoid using NULL as value, since that fails tests.
yield '_01_' . $this->randomName() => array(
'value' => $this->randomString(),
'ttl' => $this->randomInt(1, 6),
'ttl' => $this->randomInt(1, 4),
);
yield '_02_' . $this->randomName() => array(
'value' => TRUE,
'ttl' => 0,
);
yield '_03_' . $this->randomName() => array(
'value' => FALSE,
'ttl' => $this->randomInt(2, 8),
'ttl' => $this->randomInt(2, 5),
);
yield '_04_' . $this->randomName() => array(
'value' => $this->randomFloat(),
'ttl' => 0,
);
yield '_05_' . $this->randomName() => array(
'value' => $this->randomInt(),
'ttl' => $this->randomInt(2, 8),
'ttl' => $this->randomInt(2, 4),
);
yield '_06_' . $this->randomName() => array(
'value' => array(
Expand All @@ -220,19 +220,19 @@ class ApcStorageBaseTestCase extends BackdropWebTestCase {
$this->randomName() => NULL,
$this->randomName() => FALSE,
),
'ttl' => $this->randomInt(1, 7),
'ttl' => $this->randomInt(3, 5),
);
yield '_07_' . $this->randomName() => array(
'value' => $this->randomString(),
'ttl' => $this->randomInt(1, 8),
'ttl' => $this->randomInt(1, 3),
);
yield '_08_' . $this->randomName() => array(
'value' => FALSE,
'ttl' => 0,
);
yield '_09_' . $this->randomName() => array(
'value' => $this->randomFloat(),
'ttl' => $this->randomInt(2, 6),
'ttl' => $this->randomInt(1, 3),
);
}

Expand Down

0 comments on commit aa0c6f5

Please sign in to comment.