Skip to content

Commit

Permalink
Ensure epmd is running or all LocalCluster tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
feld authored and whitfin committed Mar 11, 2024
1 parent a876544 commit a3afee4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ defmodule Cachex.Mixfile do
"coveralls.travis": :cover
],
aliases: [
bench: "run benchmarks/main.exs"
bench: "run benchmarks/main.exs",
test: [&start_epmd/1, "test"]
]
]
end
Expand Down Expand Up @@ -108,4 +109,10 @@ defmodule Cachex.Mixfile do
{:ex_doc, "~> 0.29", optional: true, only: [:docs]}
]
end

defp start_epmd(_) do
{_, 0} = System.cmd("epmd", ["-daemon"])

:ok
end
end

0 comments on commit a3afee4

Please sign in to comment.