Skip to content

Commit

Permalink
Fix test for Copy-DbaLinkedServer (#9516)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan authored Oct 16, 2024
1 parent 3795844 commit e7e5b2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Copy-DbaLinkedServer.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
$results.Status | Should Be "Skipped"
}

It "upgrades SQLNCLI provider based on what is registered" {
# SQLNCLI10 and SQLNCLI11 are not used on newer versions, not sure which versions, but skipping if later than 2017
It -Skip:$($server1.VersionMajor -gt 14 -or $server2.VersionMajor -gt 14) "upgrades SQLNCLI provider based on what is registered" {
$result = Copy-DbaLinkedServer -Source $script:instance2 -Destination $script:instance3 -LinkedServer dbatoolsci_localhost2 -UpgradeSqlClient
$server1 = Connect-DbaInstance -SqlInstance $script:instance2
$server2 = Connect-DbaInstance -SqlInstance $script:instance3
Expand Down

0 comments on commit e7e5b2b

Please sign in to comment.