diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 index 8c4c49dc8d9..1f7bb99f172 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 @@ -3067,6 +3067,10 @@ Describe "Invoke-RestMethod tests" -Tags "Feature" { } Describe "Validate Invoke-WebRequest and Invoke-RestMethod -InFile" -Tags "Feature" { + BeforeAll { + $WebListener = Start-WebListener + } + Context "InFile parameter negative tests" { BeforeAll { $uri = Get-WebListenerUrl -Test 'Post'