diff --git a/images/win/scripts/Tests/Tools.Tests.ps1 b/images/win/scripts/Tests/Tools.Tests.ps1 index 848e82ea..2bb3fddf 100644 --- a/images/win/scripts/Tests/Tools.Tests.ps1 +++ b/images/win/scripts/Tests/Tools.Tests.ps1 @@ -18,8 +18,6 @@ Describe "Kind" { Describe "DotnetTLS" { It "Tls 1.2 is enabled" { - $protocols = [Net.ServicePointManager]::SecurityProtocol - $protocolArr = $protocols -split ', ' - $protocolArr.Contains('Tls12') | Should -BeTrue + [Net.ServicePointManager]::SecurityProtocol -band "Tls12" | Should -Be Tls12 } } \ No newline at end of file