[tests] Relax checks on invalid expire time messages.

Previously there was a bug in Redis that returned the wrong command
in -ERR messages when passing an invalid expire time with SETEX and
PSETEX. Now that the bug has been fixed and that travis-ci uses a an
updated version of Redis, our test suite turned red.
This commit is contained in:
Daniele Alessandri
2014-10-21 11:16:55 +02:00
parent ed1e541dc6
commit 54c8a1ee9b
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ class StringSetExpireTest extends PredisCommandTestCase
/**
* @group connected
* @expectedException \Predis\Response\ServerException
* @expectedExceptionMessage ERR invalid expire time in SETEX
* @expectedExceptionMessage ERR invalid expire time
*/
public function testThrowsExceptionOnZeroTTL()
{
@@ -104,7 +104,7 @@ class StringSetExpireTest extends PredisCommandTestCase
/**
* @group connected
* @expectedException \Predis\Response\ServerException
* @expectedExceptionMessage ERR invalid expire time in SETEX
* @expectedExceptionMessage ERR invalid expire time
*/
public function testThrowsExceptionOnNegativeTTL()
{