Skip to content

Commit

Permalink
Comment Stop-DbaProcess in AfterAll
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcorr authored Nov 23, 2018
1 parent 9ef9f21 commit 2f67471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Get-DbaDbExtentDiff.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {

Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
BeforeAll {
Get-DbaProcess -SqlInstance $script:instance1 -Program 'dbatools PowerShell module - dbatools.io' | Stop-DbaProcess -WarningAction SilentlyContinue
#Get-DbaProcess -SqlInstance $script:instance1 -Program 'dbatools PowerShell module - dbatools.io' | Stop-DbaProcess -WarningAction SilentlyContinue
$dbname = "dbatoolsci_test_$(get-random)"
$server = Connect-DbaInstance -SqlInstance $script:instance3
$null = $server.Query("Create Database [$dbname]")
Expand All @@ -29,7 +29,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
create nonclustered index NC_syscols on syscols (precision) include (collation_name)", $dbname)
}
AfterAll {
Get-DbaProcess -SqlInstance $script:instance3 -Database $dbname | Stop-DbaProcess -WarningAction SilentlyContinue
#Get-DbaProcess -SqlInstance $script:instance3 -Database $dbname | Stop-DbaProcess -WarningAction SilentlyContinue
Remove-DbaDatabase -SqlInstance $script:instance3 -Database $dbname -Confirm:$false
}

Expand Down Expand Up @@ -59,4 +59,4 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
$results.ExtentsChanged | Should Be 0
}
}
}
}

0 comments on commit 2f67471

Please sign in to comment.