File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ Describe $CommandName -Tag IntegrationTests {
72
72
AfterAll {
73
73
# We want to run all commands in the AfterAll block with EnableException to ensure that the test fails if the cleanup fails.
74
74
$PSDefaultParameterValues [' *-Dba*:EnableException' ] = $true
75
+ $PSDefaultParameterValues.Remove (' Backup-DbaDatabase:BackupDirectory' )
75
76
76
77
# Remove the backup directory.
77
78
Remove-Item - Path $DestBackupDir - Force - Recurse - ErrorAction SilentlyContinue
Original file line number Diff line number Diff line change @@ -263,12 +263,12 @@ Describe $CommandName -Tag IntegrationTests {
263
263
264
264
It " clones when using Backup-DabInstace" {
265
265
$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
267
267
if ($results.FullName ) {
268
268
Remove-Item - Path $results.FullName - ErrorAction SilentlyContinue
269
269
}
270
270
271
- $results = Backup-DbaDatabase - SqlInstance $server - Database msdb - WarningVariable warn - IgnoreFileChecks
271
+ $results = Backup-DbaDatabase - SqlInstance $server - Database msdb - WarningVariable warn
272
272
$warn | Should - BeNullOrEmpty
273
273
274
274
if ($results.FullName ) {
You can’t perform that action at this time.
0 commit comments