Browse Source

[tests] Fix test executed on current Redis unstable.

Daniele Alessandri 9 years ago
parent
commit
2175d87a96
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Predis/Command/ServerCommandTest.php

+ 2 - 2
tests/Predis/Command/ServerCommandTest.php

@@ -107,8 +107,8 @@ class ServerCommandTest extends PredisCommandTestCase
         // Predis\Response\Status instead of plain strings. This class responds
         // Predis\Response\Status instead of plain strings. This class responds
         // to __toString() so the string conversion is implicit, but assertSame
         // to __toString() so the string conversion is implicit, but assertSame
         // checks for strict equality while assertEquals is loose.
         // checks for strict equality while assertEquals is loose.
-        $expected = array(array('command', 0, array('readonly', 'loading', 'stale'), 0, 0, 0));
-        $this->assertCount(1, $response = $redis->command('INFO', 'COMMAND'));
+        $expected = array(array('get', 2, array('readonly', 'fast'), 1, 1, 1));
+        $this->assertCount(1, $response = $redis->command('INFO', 'GET'));
         $this->assertEquals($expected, $response);
         $this->assertEquals($expected, $response);
     }
     }