Skip to content

Commit 9c9416b

Browse files
Add -IgnoreFileChecks to Backup-DbaDatabase test
Updated the integration test for Backup-DbaDatabase to include the -IgnoreFileChecks parameter, ensuring the test bypasses file checks when backing up the msdb database.
1 parent 36bfc6d commit 9c9416b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Connect-DbaInstance.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
220220
$server = Connect-DbaInstance -SqlInstance $TestConfig.instance1 -Database tempdb
221221
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb
222222
Remove-Item -Path $results.FullName
223-
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb -WarningVariable warn
223+
$results = Backup-DbaDatabase -SqlInstance $server -Database msdb -WarningVariable warn -IgnoreFileChecks
224224
$warn | Should -BeNullOrEmpty
225225
Remove-Item -Path $results.FullName
226226
}

0 commit comments

Comments
 (0)