mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 22:48:04 +01:00
Add a cluster-backed message cache.
This commit is contained in:
committed by
Jon Chambers
parent
639898ec07
commit
6fc1b4c6c0
@@ -36,7 +36,7 @@ public abstract class AbstractRedisClusterTest {
|
||||
private FaultTolerantRedisCluster redisCluster;
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpBeforeClass() throws IOException, URISyntaxException, InterruptedException {
|
||||
public static void setUpBeforeClass() throws Exception {
|
||||
assumeFalse(System.getProperty("os.name").equalsIgnoreCase("windows"));
|
||||
|
||||
clusterNodes = new RedisServer[NODE_COUNT];
|
||||
@@ -50,7 +50,7 @@ public abstract class AbstractRedisClusterTest {
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
public void setUp() throws Exception {
|
||||
final List<String> urls = Arrays.stream(clusterNodes)
|
||||
.map(node -> String.format("redis://127.0.0.1:%d", node.ports().get(0)))
|
||||
.collect(Collectors.toList());
|
||||
@@ -63,12 +63,12 @@ public abstract class AbstractRedisClusterTest {
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
public void tearDown() throws Exception {
|
||||
redisCluster.stop();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void tearDownAfterClass() {
|
||||
public static void tearDownAfterClass() throws Exception {
|
||||
for (final RedisServer node : clusterNodes) {
|
||||
node.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user