Added some tests for coordinator

This commit is contained in:
Jonatan Pålsson 2011-02-17 09:35:39 +01:00
parent 94d9dc6d7f
commit 654aa837dd
2 changed files with 21 additions and 2 deletions

View file

@ -16,8 +16,8 @@ start_link() ->
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
%% @doc Terminates the coordinator process.
stop(_Reason) ->
ggs_logger:not_implemented().
stop(Reason) ->
gen_server:cast(ggs_coordinator, {stop, Reason}).
%% @doc Joins table with specified token
join_table(_Token) ->
@ -52,6 +52,9 @@ init([]) ->
handle_call(_Message, _From, State) ->
{noreply, State}.
handle_cast({stop, Reason}, State) ->
{stop, normal, state};
handle_cast(_Message, State) ->
{noreply, State}.