From 0d1e189e7f067ce2743098c104f1767c004a6fa3 Mon Sep 17 00:00:00 2001 From: Peter Merikan Date: Mon, 5 Oct 2020 21:13:50 +0200 Subject: [PATCH] add charset to our mariadb --- .../testcontainers/todo/test/AbstractIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solution/src/test/java/com/merikan/testcontainers/todo/test/AbstractIntegrationTest.java b/solution/src/test/java/com/merikan/testcontainers/todo/test/AbstractIntegrationTest.java index 3c2c272..d550ffa 100644 --- a/solution/src/test/java/com/merikan/testcontainers/todo/test/AbstractIntegrationTest.java +++ b/solution/src/test/java/com/merikan/testcontainers/todo/test/AbstractIntegrationTest.java @@ -20,10 +20,10 @@ public abstract class AbstractIntegrationTest { static final MariaDBContainer mariadb; - private static GenericContainer redis; static { - mariadb = new MariaDBContainer("mariadb:10.5.5"); + mariadb = (MariaDBContainer) new MariaDBContainer("mariadb:10.5.5") + .withCommand("--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"); mariadb.start(); }