Skip to content

Commit

Permalink
Run tests under PHP 8.3 (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss committed Oct 25, 2023
1 parent a9d18b1 commit d44f073
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
redis:
- latest

continue-on-error: ${{ matrix.php == '8.3' }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
redis:
- 3
- 4
Expand Down Expand Up @@ -98,6 +99,7 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^8.0 || ~9.4.4"
"phpunit/phpunit": "^8.0 || ^9.4"
},
"suggest": {
"ext-relay": "Faster connection with in-memory caching (>=0.6.2)"
Expand Down
4 changes: 2 additions & 2 deletions src/Connection/Cluster/RedisCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private function queryClusterNodeForSlotMap(NodeConnectionInterface $connection)
}

usleep($retryAfter * 1000);
$retryAfter = $retryAfter * 2;
$retryAfter *= 2;
++$retries;
}
}
Expand Down Expand Up @@ -541,7 +541,7 @@ private function retryCommandOnFailure(CommandInterface $command, $method)
break;
} catch (Throwable $exception) {
usleep($retryAfter * 1000);
$retryAfter = $retryAfter * 2;
$retryAfter *= 2;

if ($exception instanceof ConnectionException) {
$connection = $exception->getConnection();
Expand Down

0 comments on commit d44f073

Please sign in to comment.