Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit b2adeae

Browse files
committed
Set TLS 1.2 when testing github.com
1 parent 1e64434 commit b2adeae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TestArtifacts/VersionedModule/2.0.0/Diagnostics/Simple/PSGallery.Simple.Tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Describe 'Simple Validation of Microsoft' -Tag 'AAABBBCCC', 'XXXYYYZZZ' {
1515

1616
Describe 'Simple Validation of Github' -Tag 'JJJKKKLLL' {
1717
It 'GitHub should be responsive' {
18+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1819
$response = Invoke-WebRequest -Uri 'https://www.github.com' -UseBasicParsing
1920
$response.StatusCode | Should be 200
2021
}

0 commit comments

Comments
 (0)