Skip to content

Commit

Permalink
add version condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Jan 29, 2025
1 parent 15d73a8 commit 9d94206
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
import io.lettuce.core.*;
import io.lettuce.core.api.sync.RedisCommands;

import io.lettuce.test.condition.RedisConditions;
import org.junit.jupiter.api.*;

import java.util.Arrays;

import static io.lettuce.TestTags.INTEGRATION_TEST;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

/**
* Integration tests for ACL commands with Redis modules since Redis 8.0.
Expand All @@ -47,6 +49,7 @@ public static void setup() {

client = RedisClient.create(redisURI);
redis = client.connect().sync();
assumeTrue(RedisConditions.of(redis).hasVersionGreaterOrEqualsTo("7.9"));
}

@AfterAll
Expand Down

0 comments on commit 9d94206

Please sign in to comment.