Tests: make sure files are deleted (#6323)

calling `docsettings:flush()` was causing the sidecar file to be recreated leaving garbage folders in the KOreader folder after running the tests
This commit is contained in:
yparitcher
2020-06-28 02:03:37 -04:00
committed by GitHub
parent 37cf106fce
commit b54d04de5d

View File

@@ -33,7 +33,6 @@ describe("document registry module", function()
local docsettings = DocSettings:open(path)
docsettings:purge()
docsettings:flush()
end)
it("should set global setting for rendering engine", function()
local path = "../../foo.fb2"
@@ -58,7 +57,6 @@ describe("document registry module", function()
assert.is_equal("mupdf", provider.provider)
docsettings:purge()
docsettings:flush()
end)
it("should return global setting for rendering engine", function()
local path = "../../foofoo.fb2"