-
Notifications
You must be signed in to change notification settings - Fork 53
MongoDd: fixed expiration support and removed duplicated tests #25
MongoDd: fixed expiration support and removed duplicated tests #25
Conversation
Any possibility of add a test? |
I have seen a test failure in the develop branch. I'll check if the test fails also in master else I add it. |
@Maks3w I found out that the test I also noticed that MongoDB natively supports expiration of items by an index but this index wasn't defined -> so I added this index.
-> Because this index will only be defined if the collection wasn't pushed into the resource manager I leave the logic in the adapter intact so it will also work with the index. At this point I also removed the duplicated tests:
|
I've doubts about what expire strategy is tested then. I think we need two test cases for test when MongDb is who expire or when the defined logic |
mh I don't know why but if I remove the adapter logic to handle expired items all TTL tests fails even with this index set : https://travis-ci.org/marc-mabe/zend-cache/jobs/88634000 So the logic for handling of expired items needs to be in the adapter even with this index and the logic gets covered with the current tests. |
Ok. Seems the expires index is a new feature and its not related with the original issue. If it is correct could you split the PR and propose the index feature as enhancement? |
@Maks3w I removed the line enabling the special index. |
mh coverage for the |
with an edge case in
MongoDb::internalGetItem()