Skip to content

Commit 2b22093

Browse files
committed
Fixed ommisions from integration tests
1 parent db7e6e2 commit 2b22093

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Tests/Integration/MSFT_xScheduledTask.Integration.Tests.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ $TestEnvironment = Initialize-TestEnvironment `
1919
# Begin Testing
2020
try
2121
{
22+
$ConfigFile = Join-Path -Path $PSScriptRoot -ChildPath "$($Global:DSCResourceName).config.ps1"
23+
. $ConfigFile
24+
2225
#region Pester Tests
2326
Describe $Global:DSCResourceName {
2427

@@ -175,6 +178,10 @@ try
175178
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof).InDesiredState | Should be $true
176179
}
177180
}
181+
182+
AfterEach {
183+
Remove-DscConfigurationDocument -Stage Current, Pending, Previous -Force -Confirm:$false -WarningAction SilentlyContinue
184+
}
178185
}
179186
#endregion
180187
}

0 commit comments

Comments
 (0)