From 30031f7d7b6161d5c2e0f4fa27924f70994db15b Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Mon, 29 Aug 2022 14:29:38 +0300 Subject: [PATCH] Take second split from the end (#6156) --- images/macos/tests/Databases.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/macos/tests/Databases.Tests.ps1 b/images/macos/tests/Databases.Tests.ps1 index 9c6f9a263..084b2d910 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