Skip to content

Commit

Permalink
Skip older YDB version
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed May 20, 2024
1 parent 92ec557 commit 7e42846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/topic_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7e42846

Please sign in to comment.