Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Dec 11, 2024
1 parent d9d79fa commit d588b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/State/RedisClusterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
namespace Tests\State;

use RedisCluster as RedisCluster;
use OpenRuntimes\State\Adapter\RedisCluster as RedisAdapter;
use OpenRuntimes\State\State;
use OpenRuntimes\State\Adapter\RedisClusterState as RedisClusterState;

class RedisClusterTest extends Base
{
Expand All @@ -13,7 +12,7 @@ class RedisClusterTest extends Base
public static function setUpBeforeClass(): void
{
self::$redis = new RedisCluster(null, ['redis-cluster-0:6379', 'redis-cluster-1:6379', 'redis-cluster-2:6379']);
self::$state = new State(new RedisAdapter(self::$redis));
self::$state = new RedisClusterState(self::$redis);
}

public static function tearDownAfterClass(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/State/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use OpenRuntimes\State\State;
use Redis as Redis;
use OpenRuntimes\State\Adapter\Redis as RedisAdapter;
use OpenRuntimes\State\Adapter\RedisState as RedisState;

class RedisTest extends Base
{
public static function setUpBeforeClass(): void
{
$redis = new Redis();
$redis->connect('redis', 6379);
self::$state = new State(new RedisAdapter($redis));
self::$state = new RedisState($redis);
}

public static function tearDownAfterClass(): void
Expand Down

0 comments on commit d588b42

Please sign in to comment.