|
@@ -1135,8 +1135,9 @@ three_nodes_custom_event_handler_conflict_resolution(Config) ->
|
|
|
SlaveNode1 = proplists:get_value(syn_slave_1, Config),
|
|
|
SlaveNode2 = proplists:get_value(syn_slave_2, Config),
|
|
|
|
|
|
- %% add custom handler for resolution (using ENV)
|
|
|
+ %% add custom handler for resolution & scopes (using ENV)
|
|
|
rpc:call(SlaveNode2, application, set_env, [syn, event_handler, syn_test_event_handler_resolution]),
|
|
|
+ rpc:call(SlaveNode2, application, set_env, [syn, scopes, [scope_all, scope_bc]]),
|
|
|
|
|
|
%% start syn on nodes
|
|
|
ok = syn:start(),
|
|
@@ -1147,6 +1148,10 @@ three_nodes_custom_event_handler_conflict_resolution(Config) ->
|
|
|
syn:set_event_handler(syn_test_event_handler_resolution),
|
|
|
rpc:call(SlaveNode1, syn, set_event_handler, [syn_test_event_handler_resolution]),
|
|
|
|
|
|
+ %% add scopes
|
|
|
+ ok = syn:add_node_to_scopes([scope_all]),
|
|
|
+ ok = rpc:call(SlaveNode1, syn, add_node_to_scopes, [[scope_all, scope_bc]]),
|
|
|
+
|
|
|
%% current node
|
|
|
TestPid = self(),
|
|
|
LocalNode = node(),
|