From d62247707385958817cdda42392325c519e3056c Mon Sep 17 00:00:00 2001 From: George Fleming Date: Mon, 29 Feb 2016 12:23:28 -0800 Subject: [PATCH] Change order of delete to get around broken symlink issue --- test/powershell/New-Item.Tests.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/powershell/New-Item.Tests.ps1 b/test/powershell/New-Item.Tests.ps1 index 60e600019..7a57ff51d 100644 --- a/test/powershell/New-Item.Tests.ps1 +++ b/test/powershell/New-Item.Tests.ps1 @@ -1,5 +1,10 @@ function Clean-State { + if (Test-Path $FullyQualifiedLink) + { + Remove-Item $FullyQualifiedLink -Force + } + if (Test-Path $FullyQualifiedFile) { Remove-Item $FullyQualifiedFile -Force @@ -9,11 +14,6 @@ { Remove-Item $FullyQualifiedFolder -Recurse -Force } - - if (Test-Path $FullyQualifiedLink) - { - Remove-Item $FullyQualifiedLink -Force - } } Describe "New-Item" {