diff --git a/tests/Get-DbaTopResourceUsage.Tests.ps1 b/tests/Get-DbaTopResourceUsage.Tests.ps1 index 093ae89c90..590ddfbc7e 100644 --- a/tests/Get-DbaTopResourceUsage.Tests.ps1 +++ b/tests/Get-DbaTopResourceUsage.Tests.ps1 @@ -14,8 +14,8 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' { } Describe "$CommandName Integration Tests" -Tags "IntegrationTests" { - $results = Get-DbaTopResourceUsage -SqlInstance $instances -Type Duration -Database master - $resultsExcluded = Get-DbaTopResourceUsage -SqlInstance $instances -Type Duration -ExcludeDatabase master + $results = Get-DbaTopResourceUsage -SqlInstance $TestConfig.instances -Type Duration -Database master + $resultsExcluded = Get-DbaTopResourceUsage -SqlInstance $TestConfig.instances -Type Duration -ExcludeDatabase master Context "Command returns proper info" { It "returns results" { $results.Count -gt 0 | Should Be $true diff --git a/tests/Test-DbaNetworkLatency.Tests.ps1 b/tests/Test-DbaNetworkLatency.Tests.ps1 index dded7a64da..eae726ce58 100644 --- a/tests/Test-DbaNetworkLatency.Tests.ps1 +++ b/tests/Test-DbaNetworkLatency.Tests.ps1 @@ -15,13 +15,13 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' { Describe "$CommandName Integration Tests" -Tags "IntegrationTests" { Context "Command returns proper info" { - $results = $instances | Test-DbaNetworkLatency + $results = $TestConfig.instances | Test-DbaNetworkLatency It "returns two objects" { $results.Count | Should Be 2 } - $results = Test-DbaNetworkLatency -SqlInstance $instances + $results = Test-DbaNetworkLatency -SqlInstance $TestConfig.instances It "executes 3 times by default" { $results.ExecutionCount | Should Be 3, 3