Skip to content

Commit

Permalink
Update Connect-DbaInstance.Tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 21, 2024
1 parent d27e2ed commit 383cb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Connect-DbaInstance.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
Context "connection is properly made using a connection object" {
BeforeAll {
Set-DbatoolsConfig -FullName commands.connect-dbainstance.smo.computername.source -Value 'instance.ComputerName'
[Microsoft.Data.SqlClient.SqlConnection]$sqlconnection = "Data Source=$TestConfig.instance1;Initial Catalog=tempdb;Integrated Security=True;Encrypt=False;Trust Server Certificate=True"
[Microsoft.Data.SqlClient.SqlConnection]$sqlconnection = "Data Source=$($TestConfig.instance1);Initial Catalog=tempdb;Integrated Security=True;Encrypt=False;Trust Server Certificate=True"
$server = Connect-DbaInstance -SqlInstance $sqlconnection
Set-DbatoolsConfig -FullName commands.connect-dbainstance.smo.computername.source -Value $null
}
Expand Down

0 comments on commit 383cb89

Please sign in to comment.