mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 19:29:11 +00:00
using another fn for file deletion
This commit is contained in:
parent
b59ac37b2c
commit
a43e055916
1 changed files with 4 additions and 4 deletions
|
@ -157,8 +157,8 @@ defmodule Mix.Tasks.Pleroma.EmojiTest do
|
||||||
assert File.exists?(files_json)
|
assert File.exists?(files_json)
|
||||||
|
|
||||||
on_exit(fn ->
|
on_exit(fn ->
|
||||||
File.rm_rf!(pack_json)
|
File.rm!(pack_json)
|
||||||
File.rm_rf!(files_json)
|
File.rm!(files_json)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -218,8 +218,8 @@ defmodule Mix.Tasks.Pleroma.EmojiTest do
|
||||||
assert captured =~ "#{pack_json} has been updated with the pack2 pack"
|
assert captured =~ "#{pack_json} has been updated with the pack2 pack"
|
||||||
|
|
||||||
on_exit(fn ->
|
on_exit(fn ->
|
||||||
File.rm_rf!(pack_json)
|
File.rm!(pack_json)
|
||||||
File.rm_rf!(files_json)
|
File.rm!(files_json)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue