Skip to content

Commit 40752fc

Browse files
committed
chore: simplify test setup calls
1 parent ab3c92e commit 40752fc

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/chttpd/src/chttpd_test_util.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
-include_lib("couch/include/couch_eunit.hrl").
1818

1919
start_couch() ->
20-
start_couch(?CONFIG_CHAIN).
20+
test_util:start_couch([chttpd]).
2121

2222
start_couch(IniFiles) ->
2323
test_util:start_couch(IniFiles, [chttpd]).

src/ddoc_cache/test/eunit/ddoc_cache_tutil.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ start_couch() ->
3232
start_couch(Options) ->
3333
WriteDDocs = couch_util:get_value(write_ddocs, Options, true),
3434
purge_modules(),
35-
Ctx = test_util:start_couch(?CONFIG_CHAIN, [chttpd, ddoc_cache]),
35+
Ctx = test_util:start_couch([chttpd, ddoc_cache]),
3636
TmpDb = ?tempdb(),
3737
ok = fabric:create_db(TmpDb, [{q, "1"}, {n, "1"}]),
3838
if

src/mem3/test/eunit/mem3_reshard_changes_feed_test.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ teardown(#{} = Dbs) ->
3737
maps:map(fun(_, Db) -> delete_db(Db) end, Dbs).
3838

3939
start_couch() ->
40-
test_util:start_couch(?CONFIG_CHAIN, [mem3, fabric]).
40+
test_util:start_couch([mem3, fabric]).
4141

4242
stop_couch(Ctx) ->
4343
test_util:stop_couch(Ctx).

src/mem3/test/eunit/mem3_reshard_test.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ teardown(#{} = Dbs) ->
3939
meck:unload().
4040

4141
start_couch() ->
42-
test_util:start_couch(?CONFIG_CHAIN, [mem3, fabric]).
42+
test_util:start_couch([mem3, fabric]).
4343

4444
stop_couch(Ctx) ->
4545
test_util:stop_couch(Ctx).

src/mem3/test/eunit/mem3_shards_test.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ teardown(#{dbname := DbName}) ->
3232
delete_db(DbName).
3333

3434
start_couch() ->
35-
test_util:start_couch(?CONFIG_CHAIN, [mem3, fabric]).
35+
test_util:start_couch([mem3, fabric]).
3636

3737
stop_couch(Ctx) ->
3838
test_util:stop_couch(Ctx).

0 commit comments

Comments
 (0)