From d73ee73bc8bb0c026ec2e56993f5c74548a1e8a8 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Mon, 16 Oct 2023 09:51:21 +0200 Subject: [PATCH] ci: add 23.4-9 clickhouse versions to tests --- .github/workflows/ci.yml | 6 ++++++ tests/Client/SelectTest.php | 2 +- tests/Snippet/DatabaseSizeTest.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f78a55..e8ae894 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,12 @@ jobs: - "23.1" - "23.2" - "23.3" + - "23.4" + - "23.5" + - "23.6" + - "23.7" + - "23.8" + - "23.9" dependency-versions: - "highest" env: diff --git a/tests/Client/SelectTest.php b/tests/Client/SelectTest.php index 95d46b4..79473c9 100644 --- a/tests/Client/SelectTest.php +++ b/tests/Client/SelectTest.php @@ -157,7 +157,7 @@ public function testNull(): void public function testSettingsArePassed(): void { self::expectException(ServerError::class); - $this->expectExceptionMessage("DB::Exception: Database `non-existent` doesn't exist"); + $this->expectExceptionMessageMatches("DB::Exception: Database `non-existent` (doesn't|does not) exist"); $this->client->select('SELECT 1', new JsonCompact(), ['database' => 'non-existent']); } diff --git a/tests/Snippet/DatabaseSizeTest.php b/tests/Snippet/DatabaseSizeTest.php index d3fc13c..32d684e 100644 --- a/tests/Snippet/DatabaseSizeTest.php +++ b/tests/Snippet/DatabaseSizeTest.php @@ -36,7 +36,7 @@ public function testRun(): void $this->client->insert('test', [[new DateTimeImmutable('2020-08-01 00:11:22'), 1]]); - $expectedSize = ClickHouseVersion::get() > 2009 ? 150 : 166; + $expectedSize = ClickHouseVersion::get() > 2305 ? 162 : 150; self::assertSame($expectedSize, DatabaseSize::run($this->client)); }