From c73a8ce16afb114d6526faf5b72ad8a9db23185b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarl=20Andr=C3=A9=20H=C3=BCbenthal?= Date: Sun, 17 Nov 2024 11:34:08 +0100 Subject: [PATCH] try to fix flaky test, remove testing of mysql server image --- test/container/mysql_container_test.exs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/container/mysql_container_test.exs b/test/container/mysql_container_test.exs index 766baf3..9337a4b 100644 --- a/test/container/mysql_container_test.exs +++ b/test/container/mysql_container_test.exs @@ -30,7 +30,6 @@ defmodule Testcontainers.Container.MySqlContainerTest do import MySqlContainer @custom_mysql_container new() - |> with_image("mysql/mysql-server:8.0.32-1.2.11-server") |> with_user("custom-user") |> with_password("custom-password") |> with_database("custom-database") @@ -44,10 +43,7 @@ defmodule Testcontainers.Container.MySqlContainerTest do {:ok, pid} = MyXQL.start_link(params) - query_result = MyXQL.query!(pid, "SELECT version()", []) - - version_info = query_result.rows |> Enum.at(0) |> Enum.at(0) - assert version_info =~ "8.0.32" + assert %{num_rows: 1} = MyXQL.query!(pid, "SELECT 1", []) end end end