From f94ef357902a104e0a14dacaa9aed84fc65c18f7 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Wed, 30 May 2018 14:56:05 +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 87bc7bf76..c50700fd4 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', 5);
+        self::$sql->set('testtype', 'testkey1', 'testkey2', 'testvalue', 2);
 
         // 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', 5);
+        self::$sql->set('testtype', 'testkey1', 'testkey2', 'testvaluemodified', 2);
 
         // 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(5);
+        sleep(3);
 
         // Make sure we can't get the expired entry anymore
         $result = self::$sql->getValue('testtype', 'testkey1', 'testkey2');
-- 
GitLab