From e77451f60bec41d832bf811e3c6e7276a8405db9 Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Tue, 18 Dec 2018 16:26:48 +0000 Subject: [PATCH] Creating the file is unnecessary --- src/leveled_penciller.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/leveled_penciller.erl b/src/leveled_penciller.erl index 3480124..74e3756 100644 --- a/src/leveled_penciller.erl +++ b/src/leveled_penciller.erl @@ -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() ->