Skip to content

Commit

Permalink
Further reduced the TTL values used for cache tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avpaderno committed Feb 19, 2025
1 parent aa0c6f5 commit a136ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/apc_storage_cache.test
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ class ApcStorageCacheStoreAndRetrieveTestCase extends ApcStorageCacheBaseTestCas
foreach ($this->storageData() as $id => $data) {
$cid = "store_retrieve_cache_item_$id";

if ($this->assertCacheItemSaved($bin, $cid, $data['value'], $data['ttl'] + 2)) {
$max_ttl = max($max_ttl, $data['ttl'] + 2);
if ($this->assertCacheItemSaved($bin, $cid, $data['value'], $data['ttl'])) {
$max_ttl = max($max_ttl, $data['ttl']);
$stored[] = $cid;
}
}
Expand Down

0 comments on commit a136ac9

Please sign in to comment.