Flaky test AbstractDbCacheTest::testSetMultiple
Open
Nobody has claimed this yet.
type:test
- Dominant language
- PHP
- Stars
- 13
- Forks
- 9
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 1
Description
Sometimes fails due to time lag.
..F............................................................ 63 / 124 ( 50%)
............................................................. 124 / 124 (100%)
Time: 00:23.671, Memory: 22.00 MB
There was 1 failure:
1) Yiisoft\Cache\Db\Tests\Driver\Oracle\DbCacheTest::testSetMultiple with data set #1 (2)
Failed asserting that null matches expected 1.
/home/runner/work/cache-db/cache-db/tests/Common/AbstractDbCacheTest.php:553
/home/runner/work/cache-db/cache-db/tests/Common/AbstractDbCacheTest.php:177
Cache expire precision is 1 second, so
- 1.99: execute
setMultiplewithttl = 2-> expire is set to3(time() = 1+ 2 seconds) - 2.00: execute
get-> ok, - 2.09: execute
get-> ok - …
- 3.00: execute
get-> fail
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in tests/Common/AbstractDbCacheTest.php around lines 170-179 and 553, then run the focused Oracle DbCacheTest::testSetMultiple test. Review how the test handles the one-second cache-expiration precision and verify that the timing-boundary failure is eliminated without weakening the expiration behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100