refactror riak test config

This commit is contained in:
Anatoly Karlov 2021-09-30 21:15:25 +07:00
parent c8e6cecd76
commit 78fe66d0ac
2 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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;