diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-03 21:31:56 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-03 21:31:56 +0200 |
commit | 30c2c2c5cd4fb35f99f189d5721cda71a86e8b2b (patch) | |
tree | 00b8c4d09d2c72916dc3dc60a5bc39209fdf92ba /tests/lib | |
parent | 22f8f50e050f63c02193c4256e515bab25db1cf7 (diff) | |
download | nextcloud-server-30c2c2c5cd4fb35f99f189d5721cda71a86e8b2b.tar.gz nextcloud-server-30c2c2c5cd4fb35f99f189d5721cda71a86e8b2b.zip |
remove cache ttl tests, take a lot of time and don't work correctly for most backends anyway
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/cache.php | 12 | ||||
-rw-r--r-- | tests/lib/cache/apc.php | 5 | ||||
-rw-r--r-- | tests/lib/cache/xcache.php | 4 |
3 files changed, 0 insertions, 21 deletions
diff --git a/tests/lib/cache.php b/tests/lib/cache.php index 49a56d147d3..08653d4a310 100644 --- a/tests/lib/cache.php +++ b/tests/lib/cache.php @@ -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')); - } } diff --git a/tests/lib/cache/apc.php b/tests/lib/cache/apc.php index ae562a11df2..0e0edcf58f3 100644 --- a/tests/lib/cache/apc.php +++ b/tests/lib/cache/apc.php @@ -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 - } } diff --git a/tests/lib/cache/xcache.php b/tests/lib/cache/xcache.php index 934a5dd2fe2..c081036a31f 100644 --- a/tests/lib/cache/xcache.php +++ b/tests/lib/cache/xcache.php @@ -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 - } } |