Skip to content

Commit 88fcdce

Browse files
committed
chore: lint
1 parent f6a5c3a commit 88fcdce

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

src/couch/src/test_util.erl

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,15 @@ start_couch(IniFiles, ExtraApps) ->
108108
ok = filelib:ensure_path(RandomDataDir),
109109
ok = filelib:ensure_dir(RandomLogFile),
110110

111-
RandomIniFiles = lists:map(fun(SourceFile) ->
112-
TargetFileName = lists:last(filename:split(SourceFile)),
113-
TargetFile = filename:join([RandomEtcDir, TargetFileName]),
114-
{ok, _} = file:copy(SourceFile, TargetFile),
115-
?b2l(TargetFile)
116-
end, IniFiles),
111+
RandomIniFiles = lists:map(
112+
fun(SourceFile) ->
113+
TargetFileName = lists:last(filename:split(SourceFile)),
114+
TargetFile = filename:join([RandomEtcDir, TargetFileName]),
115+
{ok, _} = file:copy(SourceFile, TargetFile),
116+
?b2l(TargetFile)
117+
end,
118+
IniFiles
119+
),
117120
load_applications_with_stats(),
118121
ok = application:set_env(config, ini_files, RandomIniFiles),
119122
Apps = start_applications(?DEFAULT_APPS ++ ExtraApps),
@@ -127,10 +130,9 @@ start_couch(IniFiles, ExtraApps) ->
127130
stop_couch() ->
128131
ok = stop_applications(?DEFAULT_APPS).
129132

130-
stop_couch(#test_context{started = Apps, dir = RandomDir }) ->
133+
stop_couch(#test_context{started = Apps, dir = RandomDir}) ->
131134
file:del_dir_r(RandomDir),
132135
stop_applications(Apps);
133-
134136
stop_couch(_) ->
135137
stop_couch().
136138
with_couch_server_restart(Fun) ->

src/fabric/test/eunit/fabric_tests.erl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,11 @@ delete_dbs(DbList) ->
386386

387387
setup_fabric() ->
388388
Ctx = test_util:start_couch([fabric]),
389-
ok = case clear_shards_db() of
390-
ok -> ok;
391-
not_found -> ok
392-
end,
389+
ok =
390+
case clear_shards_db() of
391+
ok -> ok;
392+
not_found -> ok
393+
end,
393394
Ctx.
394395

395396
teardown_fabric(Ctx) ->

0 commit comments

Comments
 (0)