aboutsummaryrefslogtreecommitdiff
path: root/test/test_helper.exs
blob: e5b66000cb84b09951eb68c6d437686215e781d0 (plain) (blame)
1
2
3
4
5
6
7
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