Skip to content

Commit cd81457

Browse files
committed
fixed factory for tests
1 parent 9489dfc commit cd81457

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/Suite/Component/TrafficTypeTests.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ public function testTrafficTypeWarning()
4242

4343
$this->assertEquals($keyTrafficType, 'SPLITIO.trafficType.abc');
4444

45-
$factory = \SplitIO\Sdk::factory('asdqwe123456', $sdkConfig);
46-
$redisClient = ReflectiveTools::clientFromFactory($factory);
47-
$cachePool = ReflectiveTools::cacheFromFactory($factory);
45+
$redisClient = ReflectiveTools::clientFromFactory($splitFactory);
46+
$cachePool = ReflectiveTools::cacheFromFactory($splitFactory);
4847
$redisClient->del($keyTrafficType);
4948

5049
$splitCache = new SplitCache($cachePool);

0 commit comments

Comments
 (0)