From 7e42846199d45a7d76b04e2679b7c068474302ca Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Mon, 20 May 2024 21:21:28 +0300 Subject: [PATCH] Skip older YDB version --- tests/integration/topic_client_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/topic_client_test.go b/tests/integration/topic_client_test.go index a957432ec..81b94eee9 100644 --- a/tests/integration/topic_client_test.go +++ b/tests/integration/topic_client_test.go @@ -17,6 +17,7 @@ import ( ydb "github.com/ydb-platform/ydb-go-sdk/v3" "github.com/ydb-platform/ydb-go-sdk/v3/config" + "github.com/ydb-platform/ydb-go-sdk/v3/internal/version" "github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest" "github.com/ydb-platform/ydb-go-sdk/v3/topic/topicoptions" "github.com/ydb-platform/ydb-go-sdk/v3/topic/topictypes" @@ -160,6 +161,9 @@ func TestSchemeList(t *testing.T) { func TestReaderWithoutConsumer(t *testing.T) { t.Run("OK", func(t *testing.T) { + if version.Lt(os.Getenv("YDB_VERSION"), "24.1") { + t.Skip("Read topic without consumer implemented since YDB 24.1, test ran for '" + os.Getenv("YDB_VERSION") + "'") + } scope := newScope(t) ctx := scope.Ctx