fix(test): use non-bang File.rm_rf to avoid race in concurrent score-dir cleanup
This commit is contained in:
parent
e982dc4175
commit
75e074fb66
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ defmodule Microwaveprop.DataCase do
|
|||
"""
|
||||
def reset_score_files do
|
||||
dir = Application.get_env(:microwaveprop, :propagation_scores_dir)
|
||||
if is_binary(dir), do: File.rm_rf!(dir)
|
||||
|
||||
if is_binary(dir) do
|
||||
File.rm_rf(dir)
|
||||
end
|
||||
end
|
||||
|
||||
@doc """
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue