Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix intermittent EUnit test setup failure in test_helper.erl

  • Loading branch information...
commit 03bc3fb697ed72f659fd8fa2e79d7f955fba694e 1 parent a1fa6ee
@slfritchie slfritchie authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_helper.erl
View
5 test/test_helper.erl
@@ -20,10 +20,12 @@
setup() ->
stop_riak(),
+ timer:sleep(100),
start_riak().
cleanup(_) ->
stop_riak(),
+ timer:sleep(100),
net_kernel:stop().
riak_test(Fun) ->
@@ -88,6 +90,9 @@ ensure_started(App) ->
ok;
{error,{already_started,App}} ->
ok;
+ {error,{shutdown,_}} ->
+ timer:sleep(250),
+ ensure_started(App);
Error ->
throw({"failed to start", App, Error})
end.
Please sign in to comment.
Something went wrong with that request. Please try again.