Skip to content

Commit 0b4680e

Browse files
committed
test: update tt3 version
1 parent 3e4c50d commit 0b4680e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

testcontainers/src/main/java/org/testcontainers/containers/tarantool/Tarantool2Container.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected void configure() {
6666

6767
Files.write(initialScriptOnHost, this.initScript.getBytes(StandardCharsets.UTF_8));
6868

69-
withCreateContainerCmdModifier(cmd -> cmd.withName(this.node));
69+
withCreateContainerCmdModifier(cmd -> cmd.withName(this.node).withUser("root"));
7070
withNetworkAliases(this.node);
7171

7272
addFileSystemBind(

testcontainers/src/main/java/org/testcontainers/containers/tarantool/Tarantool3Container.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ protected void configure() {
227227
withEnv("TT_CONFIG_ETCD_ENDPOINTS", joinEtcdAddresses(this.etcdAddresses));
228228
withEnv("TT_CONFIG_ETCD_PREFIX", this.etcdPrefix);
229229
}
230+
withCreateContainerCmdModifier(cmd -> cmd.withName(this.node).withUser("root"));
230231
withPrivilegedMode(true);
231232
this.configured = true;
232233
} catch (Exception e) {

testcontainers/src/main/java/org/testcontainers/containers/utils/TarantoolContainerClientHelper.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ public static TarantoolContainer<?> createTarantoolContainer(Integer... exposedP
221221
.withNetwork(NETWORK)
222222
.waitingFor(
223223
new Tarantool3WaitStrategy("localhost", API_USER, CREDS.get(API_USER)))
224-
.withPrivilegedMode(true)
225-
.withCreateContainerCmdModifier(
226-
cmd -> cmd.withUser("root").withName("test-node"));
224+
.withPrivilegedMode(true);
227225
default ->
228226
throw new RuntimeException(
229227
String.format("Unsupported Tarantool version, %s", TARANTOOL_VERSION));

0 commit comments

Comments
 (0)