diff --git a/images/macos/tests/Databases.Tests.ps1 b/images/macos/tests/Databases.Tests.ps1 index 9c6f9a26..084b2d91 100644 --- a/images/macos/tests/Databases.Tests.ps1 +++ b/images/macos/tests/Databases.Tests.ps1 @@ -12,8 +12,8 @@ Describe "PostgreSQL" { It "PostgreSQL version should correspond to the version in the toolset" { $toolsetVersion = Get-ToolsetValue 'postgresql.version' # Client version - (psql --version).split()[-1] | Should -BeLike "$toolsetVersion*" + (psql --version).split()[-2] | Should -BeLike "$toolsetVersion*" # Server version - (pg_config --version).split()[-1] | Should -BeLike "$toolsetVersion*" + (pg_config --version).split()[-2] | Should -BeLike "$toolsetVersion*" } } \ No newline at end of file