Skip to content

Commit 9dbdee1

Browse files
fix afterall
1 parent 3f1164a commit 9dbdee1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/Backup-DbaDatabase.Tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Describe $CommandName -Tag IntegrationTests {
7272
AfterAll {
7373
# We want to run all commands in the AfterAll block with EnableException to ensure that the test fails if the cleanup fails.
7474
$PSDefaultParameterValues['*-Dba*:EnableException'] = $true
75+
$PSDefaultParameterValues.Remove('Backup-DbaDatabase:BackupDirectory')
7576

7677
# Remove the backup directory.
7778
Remove-Item -Path $DestBackupDir -Force -Recurse -ErrorAction SilentlyContinue

tests/Connect-DbaInstance.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ Describe $CommandName -Tag IntegrationTests {
263263

264264
It "clones when using Backup-DabInstace" {
265265
$server = Connect-DbaInstance -SqlInstance $TestConfig.instance1 -Database tempdb
266-
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb -IgnoreFileChecks
266+
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb
267267
if ($results.FullName) {
268268
Remove-Item -Path $results.FullName -ErrorAction SilentlyContinue
269269
}
270270

271-
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb -WarningVariable warn -IgnoreFileChecks
271+
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb -WarningVariable warn
272272
$warn | Should -BeNullOrEmpty
273273

274274
if ($results.FullName) {

0 commit comments

Comments
 (0)