mirror of
https://github.com/predis/predis.git
synced 2026-08-19 02:03:00 +00:00
Remove code from the test for SLAVEOF.
This commit is contained in:
@@ -2049,15 +2049,9 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$masterPort = 80;
|
||||
|
||||
$this->assertTrue($this->redis->slaveof($masterHost, $masterPort));
|
||||
$serverInfo = $this->redis->info();
|
||||
$this->assertEquals('slave', $serverInfo['role']);
|
||||
$this->assertEquals($masterHost, $serverInfo['master_host']);
|
||||
$this->assertEquals($masterPort, $serverInfo['master_port']);
|
||||
|
||||
// slave of NO ONE, the implicit way
|
||||
$this->assertTrue($this->redis->slaveof());
|
||||
$serverInfo = $this->redis->info();
|
||||
$this->assertEquals('master', $serverInfo['role']);
|
||||
|
||||
// slave of NO ONE, the explicit way
|
||||
$this->assertTrue($this->redis->slaveof('NO ONE'));
|
||||
|
||||
Reference in New Issue
Block a user