Merge pull request #242 from martinsumner/mas-i241-eunitfailure

Creating the file is unnecessary
This commit is contained in:
Martin Sumner 2018-12-18 16:27:38 +00:00 committed by GitHub
commit d5a9f2e8b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1916,10 +1916,7 @@ add_missing_hash({K, {SQN, ST, MD}}) ->
clean_dir_test() ->
% Pointless gesture to test coverage
RootPath = "../test/ledger",
ok = filelib:ensure_dir(RootPath),
?assertMatch(ok, file:write_file(RootPath ++ "/test.bob", "hello")),
ok = clean_subdir(RootPath ++ "/test.bob"),
ok = file:delete(RootPath ++ "/test.bob").
ok = clean_subdir(RootPath ++ "/test.bob").
archive_files_test() ->