Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 954fbab

Browse files
committed
Use newInstance in RedisClusterTest
1 parent 2f276dc commit 954fbab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/RedisClusterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ public function testSlotCache() {
723723

724724
$pong = 0;
725725
for ($i = 0; $i < 10; $i++) {
726-
$obj_rc = new RedisCluster(NULL, self::$_arr_node_map, 30, 30, true, $this->getAuth());
726+
$obj_rc = $this->newInstance();
727727
$pong += $obj_rc->ping("key:$i");
728728
}
729729

@@ -739,7 +739,7 @@ public function testConnectionPool() {
739739

740740
$pong = 0;
741741
for ($i = 0; $i < 10; $i++) {
742-
$obj_rc = new RedisCluster(NULL, self::$_arr_node_map, 30, 30, true, $this->getAuth());
742+
$obj_rc = $this->newInstance();
743743
$pong += $obj_rc->ping("key:$i");
744744
}
745745

0 commit comments

Comments
 (0)