Skip to content

Commit

Permalink
test if found processes are pids
Browse files Browse the repository at this point in the history
  • Loading branch information
DohanKim committed Jan 25, 2024
1 parent cfee38d commit fa057d6
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions test/walex/config/registry_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fa057d6

Please sign in to comment.