Address flaky test failure on t_invalid_view/1
- Start couch_log to make sure that couch_log_server proc exists
and write log instead of getting noproc error during test
diff --git a/src/smoosh/src/smoosh_server.erl b/src/smoosh/src/smoosh_server.erl
index 7af1e4e..f9c5210 100644
--- a/src/smoosh/src/smoosh_server.erl
+++ b/src/smoosh/src/smoosh_server.erl
@@ -447,13 +447,16 @@
setup_all() ->
+ Ctx = test_util:start_couch([couch_log]),
meck:new([config, couch_index, couch_index_server], [passthrough]),
Pid = list_to_pid("<0.0.0>"),
meck:expect(couch_index_server, get_index, 3, {ok, Pid}),
- meck:expect(config, get, fun(_, _, Default) -> Default end).
+ meck:expect(config, get, fun(_, _, Default) -> Default end),
+ Ctx.
-teardown_all(_) ->
- meck:unload().
+teardown_all(Ctx) ->
+ meck:unload(),
+ test_util:stop_couch(Ctx).
setup() ->
Shard = <<"shards/00000000-1fffffff/test.1529510412">>,