User tests: Successful: Unsuccessful:
Currently JCacheTest->testGc()
method work with cache disabled, without configured storage, but take 5 seconds.
Changes:
sleep(5)
and use TestReflection
to change modification time of cached file.get
method so we have to check file exists before get
to be sure that gc
works as expected.Travis passed.
Require code review.
None
Status | New | ⇒ | Pending |
Category | ⇒ | Unit Tests |
Labels |
Added:
?
?
|
@csthomas i prefer my https://github.com/csthomas/joomla-cms/pull/3/files because it makes sure we only delete expired cache.
May be you have rights that on JCacheTest we should not use low level var like handler->_now
Did not understood
Sorry I say about something else.
I agree with you that some value should stay after gc.
ok will wait for the changes them.
Latest staging (your other patch already merged)
Before Patch:
Time: 5.38 seconds, Memory: 10.00MB
After Patch:
Time: 835 ms, Memory: 10.00MB
So almost 5 seconds less in all unit tests.
I have tested this item
as comments above
wow just check a php 7 travis build and the unit test runned in 20 sec, even without this PR that will decrease that time in more 5 sec
https://travis-ci.org/joomla/joomla-cms/jobs/157294479#L1248
can we have another test or review here so we can make all unit tests 5 seconds faster?
Title |
|
Title |
|
This PR is only for unittest speed up - 5 seconds less.
Is no one is interested?
Title |
|
Title |
|
Labels |
Removed:
?
|
I have tested this item
Looks good, by code review
Status | Pending | ⇒ | Ready to Commit |
RTC
Milestone |
Added: |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-13 12:13:40 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
?
|
see csthomas#3 for futher improvements