Skip to content

Commit

Permalink
clear connections before test (do Measure-DbaBackupThroughput)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Oct 14, 2024
1 parent 1123b2d commit 4bc9f03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Measure-DbaBackupThroughput.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {
Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {
Context "Returns output for single database" {
BeforeAll {
$null = Get-DbaProcess -SqlInstance $script:instance2 | Where-Object Program -Match dbatools | Stop-DbaProcess -Confirm:$false -WarningAction SilentlyContinue
$random = Get-Random
$db = "dbatoolsci_measurethruput$random"
$null = New-DbaDatabase -SqlInstance $script:instance2 -Database $db | Backup-DbaDatabase
Expand Down

0 comments on commit 4bc9f03

Please sign in to comment.