Skip to content

Commit

Permalink
Fixed version issue for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Niharika Bhavaraju <[email protected]>
  • Loading branch information
niharikabhavaraju committed Dec 29, 2024
1 parent 2d122ef commit ca3c534
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/integTest/shared_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand All @@ -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"})
Expand Down
9 changes: 9 additions & 0 deletions go/integTest/standalone_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})

Expand All @@ -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"})

Expand Down Expand Up @@ -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"})

Expand Down

0 comments on commit ca3c534

Please sign in to comment.