From 23157d1971e33e7302a878ce066b48abb19038fa Mon Sep 17 00:00:00 2001 From: jwierzbo Date: Tue, 13 Dec 2022 20:31:43 +0100 Subject: [PATCH] Fix - Do not run TestClientConnectionReuse in ActiveFailover mode --- test/client_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/client_test.go b/test/client_test.go index 94149def..dea0f5d9 100644 --- a/test/client_test.go +++ b/test/client_test.go @@ -93,6 +93,12 @@ func skipNoEnterprise(t *testing.T) { } } +func skipResilientSingle(t *testing.T) { + if getTestMode() == testModeResilientSingle { + t.Skip("Disabled in active failover mode") + } +} + // skipVersionNotInRange skips the test if the current server version is less than // the min version or higher/equal max version func skipVersionNotInRange(c driver.Client, minVersion, maxVersion driver.Version, t *testing.T) driver.VersionInfo { @@ -522,6 +528,7 @@ func TestClientConnectionReuse(t *testing.T) { t.Skip("not possible with VST connections by design") return } + skipResilientSingle(t) c := createClientFromEnv(t, true) ctx := context.Background()