Skip to content

Commit

Permalink
use cross platform image for mysql in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 15, 2023
1 parent edae9ab commit 3bb461c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mysql_container_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule TestcontainersElixir.MySqlContainerTest do
end

describe "with custom configuration" do
@custom_mysql MySqlContainer.new("mysql:8.1.0",
@custom_mysql MySqlContainer.new("mysql/mysql-server:8.0.32-1.2.11-server",
username: "custom-user",
password: "custom-password",
database: "custom-database"
Expand All @@ -35,7 +35,7 @@ defmodule TestcontainersElixir.MySqlContainerTest do
query_result = MyXQL.query!(pid, "SELECT version()", [])

version_info = query_result.rows |> Enum.at(0) |> Enum.at(0)
assert version_info =~ "8.1.0"
assert version_info =~ "8.0.32"
end
end
end

0 comments on commit 3bb461c

Please sign in to comment.