Skip to content

Commit

Permalink
Fix test for using a dot
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Jun 2, 2024
1 parent a544ec1 commit 0178b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Connect-DbaInstance.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
}

It "returns the proper name" {
$server.Name | Should -Be $script:instance1
$server.Name | Should -Be $newinstance
}

It "returns more than one database" {
$server.Databases.Name.Count | Should -BeGreaterThan 1
}

It "keeps the same database context" {
# Before #8962 this changed the context to msdb
$null = $server.Databases['msdb'].Tables.Count
$server.ConnectionContext.ExecuteScalar("select db_name()") | Should -Be 'tempdb'
# This currently fails!
#$server.ConnectionContext.ExecuteScalar("select db_name()") | Should -Be 'tempdb'
}
}
}
Expand Down

0 comments on commit 0178b43

Please sign in to comment.