From 18e6a5c654bc025a92e5eaf5265bc3fdb00ce614 Mon Sep 17 00:00:00 2001 From: Mark Kraus Date: Mon, 9 Apr 2018 23:12:45 -0700 Subject: [PATCH] Add Missing Start-WebListener to Web Cmdlet Tests (#6604) --- .../Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 index 8c4c49dc8d..1f7bb99f17 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'