Skip to content

Commit

Permalink
move watchdog registration into one place
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Watson committed Jun 4, 2012
1 parent de18e09 commit 0ed5c8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/systest_cluster.erl
Expand Up @@ -163,6 +163,7 @@ start_host(Cluster, {Host, Nodes}=HostConf, Config) when is_atom(Host) andalso

start_node(Node) ->
{ok, NodeRef} = systest_node:start(Node),
systest_watchdog:node_started(Cluster, NodeRef),
NodeRef.

verify_host(Host) ->
Expand Down
1 change: 0 additions & 1 deletion src/systest_node.erl
Expand Up @@ -175,7 +175,6 @@ init([NodeInfo=#'systest.node_info'{scope=Cluster, handler=Callback}]) ->
Xtra -> [interact(NI2, In, HState) || In <- Xtra]
end,

systest_watchdog:node_started(Cluster, self()),
{ok, State};
Error ->
%% TODO: do NOT rely on callbacks returning a proper gen_server
Expand Down

0 comments on commit 0ed5c8c

Please sign in to comment.