aboutsummaryrefslogtreecommitdiff
path: root/shard/test/test_helper.exs
blob: e6a4f8e75bbfadcaf4fe87329e56965d0c80bdef (plain) (blame)
1
2
3
4
5
6
7
8
ExUnit.start(exclude: [:skip])

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