diff options
Diffstat (limited to 'shard/test/conn_test.exs')
-rw-r--r-- | shard/test/conn_test.exs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shard/test/conn_test.exs b/shard/test/conn_test.exs index 275f6dd..ae43d9d 100644 --- a/shard/test/conn_test.exs +++ b/shard/test/conn_test.exs @@ -6,10 +6,10 @@ defmodule ShardTest.Conn do require Salty.Sign.Ed25519, as: Sign test "crypto connection" do - {:ok, srv_pkey, srv_skey} = Sign.keypair + {srv_pkey, srv_skey} = Shard.Identity.get_keypair {:ok, sess_pkey, sess_skey} = Box.keypair {:ok, challenge} = Salty.Random.buf 32 - {:ok, socket} = :gen_tcp.connect {127,0,0,1}, 4044, [:binary, packet: 2, active: false] + {:ok, socket} = :gen_tcp.connect {127,0,0,1}, 4045, [:binary, packet: 2, active: false] hello = {srv_pkey, sess_pkey, challenge, 0} :gen_tcp.send(socket, :erlang.term_to_binary hello) @@ -50,6 +50,7 @@ defmodule ShardTest.Conn do receive do after 100 -> nil end end + @tag :skip test "connect to chat rooms" do {:ok, pid1} = DynamicSupervisor.start_child(Shard.DynamicSupervisor, {SApp.Chat, "test"}) {:ok, pid2} = DynamicSupervisor.start_child(Shard.DynamicSupervisor, {SApp.Chat, "other_test"}) |