Skip to content

Commit

Permalink
Fix spec for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Oct 11, 2018
1 parent 9dc1e05 commit 7360cfb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/cache_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ describe("cache", function()

after_each(function()
os.remove(filename)
os.remove(cache_filename)

if lfs.attributes(cache_filename, "mode") == "directory" then
lfs.rmdir(cache_filename)
else
os.remove(cache_filename)
end
end)

local function make_report(code)
Expand Down

0 comments on commit 7360cfb

Please sign in to comment.