Skip to content

Commit 49e73fa

Browse files
authored
Fix - Do not run TestClientConnectionReuse in ActiveFailover mode (#453)
1 parent 2740672 commit 49e73fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/client_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ func skipNoEnterprise(t *testing.T) {
9393
}
9494
}
9595

96+
func skipResilientSingle(t *testing.T) {
97+
if getTestMode() == testModeResilientSingle {
98+
t.Skip("Disabled in active failover mode")
99+
}
100+
}
101+
96102
// skipVersionNotInRange skips the test if the current server version is less than
97103
// the min version or higher/equal max version
98104
func skipVersionNotInRange(c driver.Client, minVersion, maxVersion driver.Version, t *testing.T) driver.VersionInfo {
@@ -522,6 +528,7 @@ func TestClientConnectionReuse(t *testing.T) {
522528
t.Skip("not possible with VST connections by design")
523529
return
524530
}
531+
skipResilientSingle(t)
525532

526533
c := createClientFromEnv(t, true)
527534
ctx := context.Background()

0 commit comments

Comments
 (0)