diff --git a/Tests/Unit/MSFT_xSqlAlias.Tests.ps1 b/Tests/Unit/MSFT_xSqlAlias.Tests.ps1 index 10c2eede73..7b86199789 100644 --- a/Tests/Unit/MSFT_xSqlAlias.Tests.ps1 +++ b/Tests/Unit/MSFT_xSqlAlias.Tests.ps1 @@ -26,7 +26,7 @@ try Write-Output 'DBMSSOCN,localhost,1433' } - $SqlAlias = Get-TargetResource -Name 'localhost' + $SqlAlias = Get-TargetResource -Name 'localhost' -Servname 'localhost' It 'Should return hashtable with Key Protocol'{ $SqlAlias.ContainsKey('Protocol') | Should Be $true