Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation warnings #120

Merged
merged 1 commit into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/support/nodes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ defmodule Swarm.Nodes do

_ ->
for {k, v} <- config do
:rpc.call(node, Application, :put_env, [:swarm, k, v])
:rpc.call(node(), Application, :put_env, [:swarm, k, v])
end
end

{:ok, _} = :rpc.call(node, Application, :ensure_all_started, [:elixir])
{:ok, _} = :rpc.call(node(), Application, :ensure_all_started, [:elixir])
{:ok, node_name, node_pid}
end

Expand All @@ -75,7 +75,7 @@ defmodule Swarm.Nodes do

defp wait_until_started(node_name, pid) do
receive do
{^pid, :data, :out, data} ->
{^pid, :data, :out, _data} ->
# IO.inspect {node_name, data}
:ok

Expand Down
2 changes: 1 addition & 1 deletion test/tracker_sync_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule Swarm.TrackerSyncTests do
[name: name, pid: pid, meta: meta, lclock: lclock, rclock: rclock]
end

test ":sync should set sync node and preserve node clock", %{pid: pid, meta: meta, rclock: rclock} do
test ":sync should set sync node and preserve node clock", %{rclock: rclock} do
{_, state_before} = :sys.get_state(Swarm.Tracker)
GenServer.cast(Swarm.Tracker, {:sync, self(), rclock})
{_, state_after} = :sys.get_state(Swarm.Tracker)
Expand Down