Skip to content

Commit

Permalink
[INLONG-9388][Sort] Updated version of embedded-redis in sort-connect…
Browse files Browse the repository at this point in the history
…or-redis
  • Loading branch information
hnrainll committed Dec 1, 2023
1 parent 65f9214 commit 59aa34d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.kstyrc</groupId>
<groupId>com.github.codemonstur</groupId>
<artifactId>embedded-redis</artifactId>
<version>0.6</version>
<version>1.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import redis.clients.jedis.Jedis;
import redis.embedded.RedisServer;

import java.io.IOException;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;

Expand All @@ -45,14 +46,14 @@ public class RedisTableTest {
private static RedisServer redisServer;

@BeforeClass
public static void setup() {
public static void setup() throws IOException {
redisPort = NetUtils.getAvailablePort();
redisServer = RedisServer.builder().setting("maxmemory 128m").port(redisPort).build();
redisServer = RedisServer.newRedisServer().setting("maxmemory 128m").port(redisPort).build();
redisServer.start();
}

@AfterClass
public static void cleanup() {
public static void cleanup() throws IOException {
if (redisServer != null) {
redisServer.stop();
}
Expand Down

0 comments on commit 59aa34d

Please sign in to comment.