From b54d04de5d839666a0f522b7ebd181b403003df9 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Sun, 28 Jun 2020 02:03:37 -0400 Subject: [PATCH] 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 --- spec/unit/document_registry_spec.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/unit/document_registry_spec.lua b/spec/unit/document_registry_spec.lua index ea15e0d07..b893dd6d2 100644 --- a/spec/unit/document_registry_spec.lua +++ b/spec/unit/document_registry_spec.lua @@ -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"