mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Prevent Busted from blowing up on cdata finalizers by properly closing
opened documents...
This commit is contained in:
@@ -10,6 +10,9 @@ describe("Cache module", function()
|
||||
local sample_pdf = "spec/front/unit/data/sample.pdf"
|
||||
doc = DocumentRegistry:openDocument(sample_pdf)
|
||||
end)
|
||||
teardown(function()
|
||||
doc:close()
|
||||
end)
|
||||
|
||||
it("should clear cache", function()
|
||||
Cache:clear()
|
||||
|
||||
Reference in New Issue
Block a user