Skip to content

Commit

Permalink
one more fix (do Get-DbaEstimatedCompletionTime)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Oct 20, 2024
1 parent 9ecffea commit d9f4eef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Get-DbaEstimatedCompletionTime.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
if ($script:bigDatabaseBackup) {
try {
if (-not (Test-Path -Path $script:bigDatabaseBackup) -and $script:bigDatabaseBackupSourceUrl) {
Write-Host 'Starting Download'
Invoke-WebRequest -Uri $script:bigDatabaseBackupSourceUrl -OutFile $script:bigDatabaseBackup
Invoke-WebRequest -Uri $script:bigDatabaseBackupSourceUrl -OutFile $script:bigDatabaseBackup -ErrorAction Stop
}
$null = Restore-DbaDatabase -SqlInstance $script:instance2 -Path $script:bigDatabaseBackup -DatabaseName checkdbTestDatabase -WithReplace -ReplaceDbNameInFile -EnableException
$null = New-DbaAgentJob -SqlInstance $script:instance2 -Job checkdbTestJob -EnableException
$null = New-DbaAgentJobStep -SqlInstance $script:instance2 -Job checkdbTestJob -StepName checkdb -Subsystem TransactSql -Command "DBCC CHECKDB('checkdbTestDatabase')" -EnableException
$skip = $false
} catch {
Write-Warning -Message "Test for $commandname failed in BeforeAll because: $_"
Write-Information "Test for $commandname failed in BeforeAll because: $_"
}
}
}
Expand Down

0 comments on commit d9f4eef

Please sign in to comment.