From 905e6978e6e21f803bb71569a4b2956ccb13d4b6 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Mon, 24 Jul 2017 08:17:41 -0700 Subject: [PATCH] [Feature]Fix regressions that cause implicit remoting tests to fail (#4326) --- .../Implicit.Remoting.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 index d56fa027d..7ee930944 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 @@ -1782,7 +1782,7 @@ Describe "Implicit remoting tests" -tags "Feature" { Get-Item Function:\Get-Variable -ErrorAction SilentlyContinue | Should Be $null ## BadVerb-Variable should be a function, not an alias (1) - Get-Item Function:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Be $null + Get-Item Function:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Not Be $null ## BadVerb-Variable should be a function, not an alias (2) Get-Item Alias:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Be $null @@ -1822,7 +1822,7 @@ Describe "Implicit remoting tests" -tags "Feature" { Get-Item Function:\Get-Variable -ErrorAction SilentlyContinue | Should Be $null ## BadVerb-Variable should be a function, not an alias (1) - Get-Item Function:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Be $null + Get-Item Function:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Not Be $null ## BadVerb-Variable should be a function, not an alias (2) Get-Item Alias:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Be $null @@ -1873,7 +1873,7 @@ Describe "Implicit remoting tests" -tags "Feature" { Get-Item Function:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Be $null ## BadVerb-Variable should be an alias, not a function (2) - Get-Item Alias:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Be $null + Get-Item Alias:\BadVerb-Variable -ErrorAction SilentlyContinue | Should Not Be $null (BadVerb-Variable -Name pid).Value | Should Be $remotePid } finally {