From 64c6b48f3c779e9ba98c922f3983c621b8a54664 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 16 Jan 2025 21:59:37 +0100 Subject: [PATCH] SDNConnector: Fix tests with PS 5.0 --- Tests/integration/SystemSDNConnector.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/integration/SystemSDNConnector.Tests.ps1 b/Tests/integration/SystemSDNConnector.Tests.ps1 index c4040e27..f5f3e432 100644 --- a/Tests/integration/SystemSDNConnector.Tests.ps1 +++ b/Tests/integration/SystemSDNConnector.Tests.ps1 @@ -25,12 +25,12 @@ Describe "Get SDN Connector" -skip:($fgt_version -lt "6.2.0") { It "Get ALL SDN Connectors" { $sdnconnector = Get-FGTSystemSDNConnector - $sdnconnector.count | Should -Not -Be $NULL + @($sdnconnector).count | Should -Not -Be $NULL } It "Get ALL SDN Connector with -skip" { $sdnconnector = Get-FGTSystemSDNConnector -skip - $sdnconnector.count | Should -Not -Be $NULL + @($sdnconnector).count | Should -Not -Be $NULL } It "Get SDN Connector ($pester_sdnconnector1)" {