mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Added 48 hour TTL to worker:xxx:started keys to prevent db pollution
This commit is contained in:
parent
b235fce1bd
commit
493d6dc6d8
17 changed files with 158 additions and 141 deletions
|
@ -10,9 +10,6 @@
|
|||
|
||||
class Resque_Tests_RedisTest extends Resque_Tests_TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException Test basic redis functionality.
|
||||
*/
|
||||
public function testRedisGetSet()
|
||||
{
|
||||
$this->redis->set("testKey", 24);
|
||||
|
@ -173,6 +170,8 @@ class Resque_Tests_RedisTest extends Resque_Tests_TestCase
|
|||
|
||||
/**
|
||||
* @dataProvider validDsnStringProvider
|
||||
* @param $dsn
|
||||
* @param $expected
|
||||
*/
|
||||
public function testParsingValidDsnString($dsn, $expected)
|
||||
{
|
||||
|
@ -183,6 +182,7 @@ class Resque_Tests_RedisTest extends Resque_Tests_TestCase
|
|||
/**
|
||||
* @dataProvider bogusDsnStringProvider
|
||||
* @expectedException InvalidArgumentException
|
||||
* @param $dsn
|
||||
*/
|
||||
public function testParsingBogusDsnStringThrowsException($dsn)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue