Browse Source

Add test for pid not part of scope being registered by node inside scope.

Roberto Ostinelli 3 years ago
parent
commit
248250a9ed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/syn_registry_SUITE.erl

+ 1 - 0
test/syn_registry_SUITE.erl

@@ -661,6 +661,7 @@ three_nodes_register_unregister_and_monitor_custom_scope(Config) ->
     {error, not_alive} = syn:register(custom_scope_ab, {"pid not alive"}, list_to_pid("<0.9999.0>")),
     {error, not_alive} = syn:register(custom_scope_ab, {"pid not alive"}, list_to_pid("<0.9999.0>")),
     {'EXIT', {{invalid_scope, custom_scope_bc}, _}} = catch syn:register(custom_scope_bc, "scope_a_noscope", Pid),
     {'EXIT', {{invalid_scope, custom_scope_bc}, _}} = catch syn:register(custom_scope_bc, "scope_a_noscope", Pid),
     {'EXIT', {{invalid_scope, custom_scope_bc}, _}} = catch syn:unregister(custom_scope_bc, "scope_a_noscope"),
     {'EXIT', {{invalid_scope, custom_scope_bc}, _}} = catch syn:unregister(custom_scope_bc, "scope_a_noscope"),
+    {badrpc, {'EXIT', {{invalid_scope, custom_scope_bc}, _}}} = catch rpc:call(SlaveNode1, syn, register, [custom_scope_bc, "pid-outside", Pid]),
 
 
     %% retrieve
     %% retrieve
     syn_test_suite_helper:assert_wait(
     syn_test_suite_helper:assert_wait(