aboutsummaryrefslogtreecommitdiff
path: root/shard/test/conn_test.exs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-09-11 17:21:14 +0200
committerAlex Auvolat <alex@adnab.me>2018-09-11 17:21:14 +0200
commit9695231c327e052c5d5bc61197cc8222599fb91a (patch)
treec0d0f247269729658ad354a32475f34fa7268ed1 /shard/test/conn_test.exs
parenta033c82a3c656a8f53feb60b5b149680771ac247 (diff)
downloadshard-9695231c327e052c5d5bc61197cc8222599fb91a.tar.gz
shard-9695231c327e052c5d5bc61197cc8222599fb91a.zip
Block store dependency management & caching (NOT TESTED)
Diffstat (limited to 'shard/test/conn_test.exs')
-rw-r--r--shard/test/conn_test.exs5
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"})