mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
8.0-RC2 testing (#1531)
This commit is contained in:
committed by
GitHub
parent
b5c942b2a1
commit
aa72649e43
@@ -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"
|
||||
)
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Maintenance
|
||||
- Updated Redis 8.0 testing image (#1531)
|
||||
|
||||
## v3.0.0-RC1 (2025-04-17)
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user