From aa72649e435a370e72cbd500508b0044e4e24b42 Mon Sep 17 00:00:00 2001 From: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> Date: Tue, 29 Apr 2025 18:25:18 +0300 Subject: [PATCH] 8.0-RC2 testing (#1531) --- .github/workflows/tests.yml | 2 +- CHANGELOG.md | 3 +++ tests/Predis/Command/Redis/TimeSeries/TSINFO_Test.php | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b4cd4c0e..9655a381 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: run: | # Mapping of original redis versions to client test containers declare -A redis_clients_version_mapping=( - ["8.0"]="8.0-M05-pre" + ["8.0"]="8.0-RC2-pre" ["7.4"]="7.4.2" ["7.2"]="7.2.7" ) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d1b4415..6882e385 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +### Maintenance +- Updated Redis 8.0 testing image (#1531) + ## v3.0.0-RC1 (2025-04-17) ### Breaking Changes diff --git a/tests/Predis/Command/Redis/TimeSeries/TSINFO_Test.php b/tests/Predis/Command/Redis/TimeSeries/TSINFO_Test.php index a7eed271..76107721 100644 --- a/tests/Predis/Command/Redis/TimeSeries/TSINFO_Test.php +++ b/tests/Predis/Command/Redis/TimeSeries/TSINFO_Test.php @@ -69,7 +69,7 @@ class TSINFO_Test extends PredisCommandTestCase public function testReturnsInformationAboutGivenTimeSeries(): void { $redis = $this->getClient(); - $expectedResponse = ['totalSamples', 0, 'memoryUsage', 4239, 'firstTimestamp', 0, 'lastTimestamp', 0, + $expectedResponse = ['totalSamples', 0, 'memoryUsage', 5000, 'firstTimestamp', 0, 'lastTimestamp', 0, 'retentionTime', 60000, 'chunkCount', 1, 'chunkSize', 4096, 'chunkType', 'compressed', 'duplicatePolicy', 'max', 'labels', [['sensor_id', '2'], ['area_id', '32']], 'sourceKey', null, 'rules', [], 'ignoreMaxTimeDiff', 0, 'ignoreMaxValDiff', 0]; @@ -84,7 +84,7 @@ class TSINFO_Test extends PredisCommandTestCase $redis->tscreate('temperature:2:32', $arguments) ); - $this->assertEquals($expectedResponse, $redis->tsinfo('temperature:2:32')); + $this->assertEqualsWithDelta($expectedResponse, $redis->tsinfo('temperature:2:32'), 1000); } /** @@ -97,7 +97,7 @@ class TSINFO_Test extends PredisCommandTestCase public function testReturnsInformationAboutGivenTimeSeriesResp3(): void { $redis = $this->getResp3Client(); - $expectedResponse = ['totalSamples' => 0, 'memoryUsage' => 4239, 'firstTimestamp' => 0, 'lastTimestamp' => 0, + $expectedResponse = ['totalSamples' => 0, 'memoryUsage' => 5000, 'firstTimestamp' => 0, 'lastTimestamp' => 0, 'retentionTime' => 60000, 'chunkCount' => 1, 'chunkSize' => 4096, 'chunkType' => 'compressed', 'duplicatePolicy' => 'max', 'labels' => ['sensor_id' => '2', 'area_id' => '32'], 'sourceKey' => null, 'rules' => [], 'ignoreMaxTimeDiff' => 0, 'ignoreMaxValDiff' => 0]; @@ -112,7 +112,7 @@ class TSINFO_Test extends PredisCommandTestCase $redis->tscreate('temperature:2:32', $arguments) ); - $this->assertEquals($expectedResponse, $redis->tsinfo('temperature:2:32')); + $this->assertEqualsWithDelta($expectedResponse, $redis->tsinfo('temperature:2:32'), 1000); } public function argumentsProvider(): array