Skip to content
Snippets Groups Projects
Unverified Commit f94ef357 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix test failure when Travis is slow

parent 20af1f53
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment