Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure all necessary apps are started

My guess is this test was previously depending on the side effects of
another test to start these applications.  In a perfect world the test
would setup/teardown the apps before/after the test but I'm just
trying to get the tests to run here.
  • Loading branch information...
commit f9b142e43d7dc765d0f2cadf77a0fb446386f963 1 parent 6170114
@rzezeski rzezeski authored
Showing with 15 additions and 8 deletions.
  1. +15 −8 test/eqc_routes.erl
View
23 test/eqc_routes.erl
@@ -28,13 +28,7 @@ prop_routes () ->
collect(Auth,
begin
setup(Auth),
-
- %% start application dependencies
- riak_core_util:start_app_deps(riak_core),
- riak_core_util:start_app_deps(riak_control),
-
- %% can now start riak control
- application:start(riak_control),
+ start_apps(),
%% ensure riak_control is up and running
riak_core:wait_for_application(riak_control),
@@ -56,7 +50,6 @@ prop_routes () ->
end))
end)).
-
%% ---------------------------------------------------------------------------
%% statem behavior
@@ -240,4 +233,18 @@ auth_user (_) -> "".
qs ([{K,V}|QS]) -> f("~s=~w&~s", [K,V,qs(QS)]);
qs ([]) -> "".
+%% TODO Should probably write stop_apps but need to determine all apps
+%% started by start_app_deps.
+start_apps() ->
+ application:start(compiler),
+ application:start(syntax_tools),
+ application:start(mochiweb),
+
+ %% start application dependencies
+ riak_core_util:start_app_deps(riak_core),
+ riak_core_util:start_app_deps(riak_control),
+
+ %% can now start riak control
+ application:start(riak_control).
+
-endif. % EQC

0 comments on commit f9b142e

Please sign in to comment.
Something went wrong with that request. Please try again.