mirror of
https://github.com/valitydev/wb-list-manager.git
synced 2024-11-06 01:35:17 +00:00
refactror riak test config
This commit is contained in:
parent
c8e6cecd76
commit
78fe66d0ac
@ -38,7 +38,7 @@ public class RiakTest {
|
||||
|
||||
@Test
|
||||
public void riakTest() throws ExecutionException, InterruptedException {
|
||||
sleep(10000);
|
||||
sleep(20000);
|
||||
|
||||
Row row = new Row();
|
||||
row.setKey(KEY);
|
||||
|
@ -40,10 +40,12 @@ public class RiakTestcontainerExtension implements BeforeAllCallback, AfterAllCa
|
||||
try (GenericContainer<?> container = new GenericContainer<>(
|
||||
DockerImageName
|
||||
.parse("basho/riak-kv"))
|
||||
.withExposedPorts(8087)
|
||||
.withExposedPorts(8098, 8087)
|
||||
.withPrivilegedMode(true)
|
||||
.withNetworkAliases("riak-kv-" + UUID.randomUUID())
|
||||
.withEnv("CLUSTER_NAME", "riakkv")
|
||||
.withLabel("com.basho.riak.cluster.name", "riak-kv")
|
||||
.withEnv("CLUSTER_NAME", "riakts")
|
||||
.withEnv("WAIT_FOR_ERLANG", "1000")
|
||||
.withLabel("com.basho.riak.cluster.name", "riakts")
|
||||
.waitingFor(new WaitAllStrategy()
|
||||
.withStartupTimeout(Duration.ofMinutes(2)))) {
|
||||
return container;
|
||||
|
Loading…
Reference in New Issue
Block a user