From ca3c534417401604371ab401b9bf4fcb3f6def5e Mon Sep 17 00:00:00 2001 From: Niharika Bhavaraju Date: Sun, 29 Dec 2024 19:36:25 +0000 Subject: [PATCH] Fixed version issue for tests Signed-off-by: Niharika Bhavaraju --- go/integTest/shared_commands_test.go | 2 ++ go/integTest/standalone_commands_test.go | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/go/integTest/shared_commands_test.go b/go/integTest/shared_commands_test.go index 59a15f75cd..c40639e0a0 100644 --- a/go/integTest/shared_commands_test.go +++ b/go/integTest/shared_commands_test.go @@ -3799,6 +3799,7 @@ func (suite *GlideTestSuite) TestSortStoreWithOptions_Limit() { } func (suite *GlideTestSuite) TestSortReadOnly_SuccessfulSort() { + suite.SkipIfServerVersionLowerThanBy("7.0.0") suite.runWithDefaultClients(func(client api.BaseClient) { key := uuid.New().String() client.LPush(key, []string{"3", "1", "2"}) @@ -3818,6 +3819,7 @@ func (suite *GlideTestSuite) TestSortReadOnly_SuccessfulSort() { } func (suite *GlideTestSuite) TestSortReadyOnlyWithOptions_DescendingOrder() { + suite.SkipIfServerVersionLowerThanBy("7.0.0") suite.runWithDefaultClients(func(client api.BaseClient) { key := uuid.New().String() client.LPush(key, []string{"b", "a", "c"}) diff --git a/go/integTest/standalone_commands_test.go b/go/integTest/standalone_commands_test.go index 60e3b853de..46e620227e 100644 --- a/go/integTest/standalone_commands_test.go +++ b/go/integTest/standalone_commands_test.go @@ -365,6 +365,9 @@ func (suite *GlideTestSuite) TestSortStoreWithOptions_ByPattern() { func (suite *GlideTestSuite) TestSortReadOnlyWithOptions_ExternalWeights() { client := suite.defaultClient() + if suite.serverVersion < "7.0.0" { + suite.T().Skip("This feature is added in version 7") + } key := uuid.New().String() client.LPush(key, []string{"item1", "item2", "item3"}) @@ -390,6 +393,9 @@ func (suite *GlideTestSuite) TestSortReadOnlyWithOptions_ExternalWeights() { func (suite *GlideTestSuite) TestSortReadOnlyWithOptions_GetPatterns() { client := suite.defaultClient() + if suite.serverVersion < "7.0.0" { + suite.T().Skip("This feature is added in version 7") + } key := uuid.New().String() client.LPush(key, []string{"item1", "item2", "item3"}) @@ -418,6 +424,9 @@ func (suite *GlideTestSuite) TestSortReadOnlyWithOptions_GetPatterns() { func (suite *GlideTestSuite) TestSortReadOnlyWithOptions_SuccessfulSortByWeightAndGet() { client := suite.defaultClient() + if suite.serverVersion < "7.0.0" { + suite.T().Skip("This feature is added in version 7") + } key := uuid.New().String() client.LPush(key, []string{"item1", "item2", "item3"})