Skip to content

Commit e7e5b2b

Browse files
Fix test for Copy-DbaLinkedServer (#9516)
1 parent 3795844 commit e7e5b2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Copy-DbaLinkedServer.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
5555
$results.Status | Should Be "Skipped"
5656
}
5757

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

0 commit comments

Comments
 (0)