Explorar o código

[tests] Fix test executed on current Redis unstable.

Daniele Alessandri %!s(int64=9) %!d(string=hai) anos
pai
achega
2175d87a96
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
         // to __toString() so the string conversion is implicit, but assertSame
         // 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);
     }