mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
remove cache ttl tests, take a lot of time and don't work correctly for most backends anyway
This commit is contained in:
parent
22f8f50e05
commit
30c2c2c5cd
3 changed files with 0 additions and 21 deletions
|
|
@ -66,16 +66,4 @@ abstract class Test_Cache extends UnitTestCase {
|
|||
$this->assertFalse($this->instance->hasKey('2_value1'));
|
||||
$this->assertFalse($this->instance->hasKey('3_value1'));
|
||||
}
|
||||
|
||||
function testTTL() {
|
||||
$value='foobar';
|
||||
$this->instance->set('value1',$value,1);
|
||||
$value2='foobar';
|
||||
$this->instance->set('value2',$value2);
|
||||
sleep(2);
|
||||
$this->assertFalse($this->instance->hasKey('value1'));
|
||||
$this->assertNull($this->instance->get('value1'));
|
||||
$this->assertTrue($this->instance->hasKey('value2'));
|
||||
$this->assertEqual($value2,$this->instance->get('value2'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
5
tests/lib/cache/apc.php
vendored
5
tests/lib/cache/apc.php
vendored
|
|
@ -28,9 +28,4 @@ class Test_Cache_APC extends Test_Cache {
|
|||
}
|
||||
$this->instance=new OC_Cache_APC();
|
||||
}
|
||||
|
||||
function testTTL() {
|
||||
// ttl doesn't work correctly in the same request
|
||||
// see https://bugs.php.net/bug.php?id=58084
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
tests/lib/cache/xcache.php
vendored
4
tests/lib/cache/xcache.php
vendored
|
|
@ -28,8 +28,4 @@ class Test_Cache_XCache extends Test_Cache {
|
|||
}
|
||||
$this->instance=new OC_Cache_XCache();
|
||||
}
|
||||
|
||||
function testTTL() {
|
||||
// ttl doesn't work correctly in the same request
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue