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