Commits

arkdro committed 8f33fd6

correct test to use correct parameters

Comments (0)

Files changed (1)

erlang/test/num_SUITE.erl

 % Config0 = Config1 = [tuple()]
 % -----------------------------------------------------------------------------
 end_per_suite(_Config) ->
+    application:stop(odn),
+    timer:sleep(1000),
     ok.
 
 % -----------------------------------------------------------------------------
 %%=============================================================================
 start_prog(Config) ->
     Prog = ct:get_config(odn_prog),
+    Cookie = ct:get_config(odn_cookie),
+    Node = ct:get_config(odn_node),
     Base = proplists:get_value(data_dir, Config),
     Dir = filename:dirname(filename:dirname(filename:dirname(Base))),
     Fullname = filename:join([Dir, "priv", Prog]),
     application:load(odn),
-    application:set_env(odn, port_command, Fullname),
+    application:set_env(odn, worker_node, Node),
+    application:set_env(odn, worker_cookie, Cookie),
+    application:set_env(odn, worker_command, Fullname),
+    application:set_env(odn, worker_debug, undefined),
     ok = application:start(odn).
 
 ops() ->