forked from bitwalker/libcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,8 @@ defmodule Cluster.StrategyTest do | |
assert_receive {:connect, :"[email protected]"} | ||
|
||
assert_receive {:telemetry_event, | ||
{[:libcluster, :connect_node, :ok], %{duration: _}, | ||
%{node: :"[email protected]", topology: _}, _}} | ||
{[:libcluster, :connect_node, :ok], %{duration: _}, | ||
%{node: :"[email protected]", topology: _}, _}} | ||
end | ||
|
||
test "handles connect failure" do | ||
|
@@ -53,8 +53,8 @@ defmodule Cluster.StrategyTest do | |
assert_receive {:connect, :"[email protected]"} | ||
|
||
assert_receive {:telemetry_event, | ||
{[:libcluster, :connect_node, :error], %{}, | ||
%{node: :"[email protected]", topology: _, reason: :unreachable}, _}} | ||
{[:libcluster, :connect_node, :error], %{}, | ||
%{node: :"[email protected]", topology: _, reason: :unreachable}, _}} | ||
end | ||
|
||
test "handles connect ignore" do | ||
|
@@ -71,8 +71,8 @@ defmodule Cluster.StrategyTest do | |
assert_receive {:connect, :"[email protected]"} | ||
|
||
assert_receive {:telemetry_event, | ||
{[:libcluster, :connect_node, :error], %{}, | ||
%{node: :"[email protected]", topology: _, reason: :not_part_of_network,}, _}} | ||
{[:libcluster, :connect_node, :error], %{}, | ||
%{node: :"[email protected]", topology: _, reason: :not_part_of_network}, _}} | ||
end | ||
end | ||
|
||
|
@@ -102,8 +102,8 @@ defmodule Cluster.StrategyTest do | |
assert_receive {:disconnect, :"[email protected]"} | ||
|
||
assert_receive {:telemetry_event, | ||
{[:libcluster, :disconnect_node, :ok], %{duration: _}, | ||
%{node: :"[email protected]", topology: _}, _}} | ||
{[:libcluster, :disconnect_node, :ok], %{duration: _}, | ||
%{node: :"[email protected]", topology: _}, _}} | ||
end | ||
|
||
test "handles disconnect error" do | ||
|
@@ -123,8 +123,8 @@ defmodule Cluster.StrategyTest do | |
assert_receive {:disconnect, :"[email protected]"} | ||
|
||
assert_receive {:telemetry_event, | ||
{[:libcluster, :disconnect_node, :error], %{}, | ||
%{node: :"[email protected]", topology: _, reason: ":failed"}, _}} | ||
{[:libcluster, :disconnect_node, :error], %{}, | ||
%{node: :"[email protected]", topology: _, reason: ":failed"}, _}} | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters