diff --git a/test/walex/config/registry_test.exs b/test/walex/config/registry_test.exs index 664b83a..45cd4b4 100644 --- a/test/walex/config/registry_test.exs +++ b/test/walex/config/registry_test.exs @@ -54,17 +54,38 @@ defmodule WalEx.Config.RegistryTest do WalExRegistry.set_name(:set_supervisor, WalExSupervisor, :test_name) ) + assert GenServer.whereis( + WalExRegistry.set_name( + :set_supervisor, + WalEx.Destinations.Supervisor, + :test_name + ) + ) + |> is_pid() + + assert GenServer.whereis( + WalExRegistry.set_name( + :set_supervisor, + WalEx.Replication.Supervisor, + :test_name + ) + ) + |> is_pid() + assert GenServer.whereis( WalExRegistry.set_name(:set_gen_server, WalEx.Destinations, :test_name) - ) != nil + ) + |> is_pid() assert GenServer.whereis( WalExRegistry.set_name(:set_gen_server, WalEx.Replication.Server, :test_name) - ) != nil + ) + |> is_pid() assert GenServer.whereis( WalExRegistry.set_name(:set_gen_server, WalEx.Replication.Publisher, :test_name) - ) != nil + ) + |> is_pid() end end