diff options
author | Alex Auvolat <alex@adnab.me> | 2018-08-27 16:19:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-08-27 16:19:53 +0200 |
commit | 233989490b0b01670b03154f9e8f83be13e5a89a (patch) | |
tree | 9a98641848fc57f85ce2c451911d4030c05153f9 /test/test_helper.exs | |
parent | 6cc81b55f2466cd7526f47da6980e3eb47041457 (diff) | |
download | shard-233989490b0b01670b03154f9e8f83be13e5a89a.tar.gz shard-233989490b0b01670b03154f9e8f83be13e5a89a.zip |
Big fixes (1 line), small changes (many lines)
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 |