Skip to content

Commit b4f4e68

Browse files
committed
Fixed IT tests on win2016 (exception message format change between PS5.x to PS6.x)
1 parent ce24357 commit b4f4e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ITTests/Simple.ITTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Describe "Netscaler Connection" {
1111

1212
Get-NSHostname
1313
Disconnect-Netscaler
14-
{ Get-NSHostname } | Should Throw "401 (Unauthorized)"
14+
{ Get-NSHostname } | Should Throw "Unauthorized"
1515
}
1616

1717
It "should disconnect explicit session" {
1818
$Session = Connect-TestNetscaler
1919

2020
Get-NSHostname -Session $Session
2121
Disconnect-Netscaler -Session $Session
22-
{ Get-NSHostname -Session $Session } | Should Throw "401 (Unauthorized)"
22+
{ Get-NSHostname -Session $Session } | Should Throw "Unauthorized"
2323
}
2424
}
2525

0 commit comments

Comments
 (0)