diff options
Diffstat (limited to 'src/couch/src/test_engine_util.erl')
-rw-r--r-- | src/couch/src/test_engine_util.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/couch/src/test_engine_util.erl b/src/couch/src/test_engine_util.erl index 89997538d..b2bfea85d 100644 --- a/src/couch/src/test_engine_util.erl +++ b/src/couch/src/test_engine_util.erl @@ -82,7 +82,8 @@ rootdir() -> dbpath() -> - binary_to_list(filename:join(rootdir(), couch_uuids:random())). + binary_to_list(filename:join(rootdir(), + list_to_binary("a" ++ binary_to_list(couch_uuids:random()) ++ ".couch"))). get_engine() -> @@ -565,8 +566,9 @@ list_diff([T1 | R1], [T2 | R2]) -> compact(Engine, St1, DbPath) -> - DbName = filename:basename(DbPath), - {ok, St2, Pid} = Engine:start_compaction(St1, DbName, [], self()), + DbName1 = filename:basename(DbPath), + DbName2 = filename:rootname(DbName1), + {ok, St2, Pid} = Engine:start_compaction(St1, ?l2b(DbName2), [], self()), Ref = erlang:monitor(process, Pid), % Ideally I'd assert that Pid is linked to us @@ -583,7 +585,7 @@ compact(Engine, St1, DbPath) -> erlang:error(compactor_timed_out) end, - {ok, St2, DbName, Pid, Term}. + {ok, St2, DbName2, Pid, Term}. with_config(Config, Fun) -> |