Commit 1d70c15b authored by Jonathan Schafer's avatar Jonathan Schafer

Close and unlink tempfile after use

parent 17a069ae
...@@ -190,6 +190,8 @@ FactoryBot.define do ...@@ -190,6 +190,8 @@ FactoryBot.define do
output = Tempfile.new("gl-sast-missing-identifiers") output = Tempfile.new("gl-sast-missing-identifiers")
output.write(data) output.write(data)
artifact.file = fixture_file_upload(output.path, 'application/json') artifact.file = fixture_file_upload(output.path, 'application/json')
output.close
output.unlink
end 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