Skip to content

Commit

Permalink
Silence des warnings du mix.lock (#4224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitfred authored Sep 25, 2024
1 parent d54a894 commit 89f1d12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/transport/test/build_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
defmodule TransportWeb.BuildTest do
use ExUnit.Case
import ExUnit.CaptureIO

def tool_versions do
File.read!("../../.tool-versions")
Expand Down Expand Up @@ -40,7 +41,8 @@ defmodule TransportWeb.BuildTest do
# The test has to take the git-stored version of `mix.lock` and assert on its content,
# because the CI doesn't run ARM and `mix deps.get` will overwrite `mix.lock` at the moment
{output, 0} = System.cmd("git", ["show", "HEAD:../../mix.lock"])
{%{rambo: rambo}, []} = output |> Code.eval_string()
{{%{rambo: rambo}, []}, _log} = with_io(:stderr, fn -> Code.eval_string(output) end)

# if this test fails, it may be because someone with a Mac M1 unintentionally committed `mix.lock` change
# related to a Rambo-tweak, see https://github.com/etalab/transport-site/blob/61eabf185e71b7670e5d750048714636f85c5e58/apps/transport/mix.exs#L99-L111
assert rambo |> elem(0) == :hex
Expand Down

0 comments on commit 89f1d12

Please sign in to comment.