diff options
Diffstat (limited to 'test/test_helper.exs')
-rw-r--r-- | test/test_helper.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_helper.exs b/test/test_helper.exs index 869559e..e5b6600 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1 +1,8 @@ ExUnit.start() + +case :gen_tcp.connect('localhost', 4045, []) do + {:ok, socket} -> + :gen_tcp.close(socket) + {:error, _reason} -> + Mix.raise "Please have another instance of Shard running at 127.0.0.1:4045, it can be launched with the command: PORT=4045 iex -S mix" +end |