From b6caa13a4e694ac1b4a1549b713615820bfa1aa3 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Tue, 14 Jul 2020 09:40:02 +0300 Subject: [PATCH] Fix --- images/win/scripts/Tests/Tools.Tests.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/images/win/scripts/Tests/Tools.Tests.ps1 b/images/win/scripts/Tests/Tools.Tests.ps1 index 848e82ead..2bb3fddf6 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