From 20af1f53e8df2c4b88bf7d4cf89380be63f80867 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Wed, 30 May 2018 14:51:45 +0200 Subject: [PATCH] Fix test failure when Travis is slow --- tests/modules/core/lib/Storage/SQLPermanentStorageTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modules/core/lib/Storage/SQLPermanentStorageTest.php b/tests/modules/core/lib/Storage/SQLPermanentStorageTest.php index ec54de7d5..87bc7bf76 100644 --- a/tests/modules/core/lib/Storage/SQLPermanentStorageTest.php +++ b/tests/modules/core/lib/Storage/SQLPermanentStorageTest.php @@ -27,7 +27,7 @@ class Test_Core_Storage_SQLPermanentStorage extends TestCase public function testSet() { // Set a new value - self::$sql->set('testtype', 'testkey1', 'testkey2', 'testvalue', 0); + self::$sql->set('testtype', 'testkey1', 'testkey2', 'testvalue', 5); // Test getCondition $result = self::$sql->get(); @@ -37,7 +37,7 @@ class Test_Core_Storage_SQLPermanentStorage extends TestCase public function testSetOverwrite() { // Overwrite existing value - self::$sql->set('testtype', 'testkey1', 'testkey2', 'testvaluemodified', 0); + self::$sql->set('testtype', 'testkey1', 'testkey2', 'testvaluemodified', 5); // Test that the value was actually overwriten $result = self::$sql->getValue('testtype', 'testkey1', 'testkey2'); @@ -61,7 +61,7 @@ class Test_Core_Storage_SQLPermanentStorage extends TestCase public function testExpiration() { // Make sure the earlier created entry has expired now - sleep(1); + sleep(5); // Make sure we can't get the expired entry anymore $result = self::$sql->getValue('testtype', 'testkey1', 'testkey2'); -- GitLab