Skip to content

Commit

Permalink
Fix redis method
Browse files Browse the repository at this point in the history
  • Loading branch information
snipershady committed Sep 28, 2022
1 parent 8acad62 commit 26b9c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/RateLimitBanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class RateLimitBanTest extends AbstractTestCase {
public function setUp(): void {
parent::setUp();
$this->redis = new Client("tcp://$this->servername:$this->port?persistent=redis01");
$this->redis->flushAll();
$this->redis->flushall();
apcu_clear_cache();
}

public function tearDown(): void {
parent::tearDown();
$this->redis->flushAll();
$this->redis->flushall();
apcu_clear_cache();
}

Expand Down
4 changes: 2 additions & 2 deletions tests/RateLimitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class RateLimitTest extends AbstractTestCase {
public function setUp(): void {
parent::setUp();
$this->redis = new Client("tcp://$this->servername:$this->port?persistent=redis01");
$this->redis->flushAll();
$this->redis->flushall();
apcu_clear_cache();
}

public function tearDown(): void {
parent::tearDown();
$this->redis->flushAll();
$this->redis->flushall();
apcu_clear_cache();
}

Expand Down

0 comments on commit 26b9c71

Please sign in to comment.