From 657f7731577c3e9624c2e069dbf5df921d70efbf Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sun, 20 Feb 2022 15:56:04 +0300 Subject: [PATCH] test: improve skip logic --- tracing_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tracing_test.go b/tracing_test.go index 73f4a9b1..e953c58f 100644 --- a/tracing_test.go +++ b/tracing_test.go @@ -63,8 +63,7 @@ func TestClient_Do_tracing(t *testing.T) { }, }) - info := conn.ServerInfo() - if info.Revision < 54455 { + if v := conn.ServerInfo(); (v.Major < 22) || (v.Major == 22 && v.Minor < 2) { t.Skip("Skipping (not supported)") }