Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen_fsm replaced by gen_statem in vnode #80

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moved get_modstate to test scope
  • Loading branch information
Albert Schimpf committed Nov 24, 2020
commit 9385b01b2d7c457f17f54a19ed65edab72f3bc1b
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ clean: clean-test

distclean: clean


clean-test:
rm -rf t1000
rm -rf t2000
Expand Down
3 changes: 2 additions & 1 deletion src/riak_core_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,8 @@ mod_set_forwarding(Forward,
%% ===================================================================


-ifdef(TEST).

-type state() :: #state{}.

%% @doc Reveal the underlying module state for testing
Expand All @@ -1405,7 +1407,6 @@ get_modstate(Pid) ->
current_state),

{State#state.mod, State#state.modstate}.
-ifdef(TEST).
%% Start the garbage collection server
test_link(Mod, Index) ->
gen_statem:start_link(?MODULE,
Expand Down