Commit a43e0559 authored by Alexander Strizhakov's avatar Alexander Strizhakov

using another fn for file deletion

parent b59ac37b
Pipeline #24214 passed with stages
in 6 minutes and 53 seconds
......@@ -157,8 +157,8 @@ test "with default extensions", %{url: url} do
assert File.exists?(files_json)
on_exit(fn ->
File.rm_rf!(pack_json)
File.rm_rf!(files_json)
File.rm!(pack_json)
File.rm!(files_json)
end)
end
......@@ -218,8 +218,8 @@ test "with custom extensions and update existing files", %{url: url} do
assert captured =~ "#{pack_json} has been updated with the pack2 pack"
on_exit(fn ->
File.rm_rf!(pack_json)
File.rm_rf!(files_json)
File.rm!(pack_json)
File.rm!(files_json)
end)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment