Skip to content

Commit

Permalink
ci: add 23.4-9 clickhouse versions to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Oct 16, 2023
1 parent 6fe4c76 commit d73ee73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/Client/SelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Snippet/DatabaseSizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit d73ee73

Please sign in to comment.