From a3afee49cd468a71ac8b6c0499f4954e5ad8800a Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 26 Jan 2024 18:45:36 +0000 Subject: [PATCH] Ensure epmd is running or all LocalCluster tests fail --- mix.exs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 0e44036..16245a1 100644 --- a/mix.exs +++ b/mix.exs @@ -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 @@ -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