From 8c29b71e45622072b26913cbb4568a543a2fd331 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Sun, 10 Oct 2021 07:33:57 -0400 Subject: [PATCH] Tests: emptydir switch from data/dict to history (#8296) So this test doesn't fail when one has dictionaries locally (history folder is deprecated and should be empty). --- spec/unit/util_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/util_spec.lua b/spec/unit/util_spec.lua index d45a20000..e2477ae95 100644 --- a/spec/unit/util_spec.lua +++ b/spec/unit/util_spec.lua @@ -318,7 +318,7 @@ describe("util module", function() describe("isEmptyDir()", function() it("should return true on empty dir", function() - assert.is_true(util.isEmptyDir(DataStorage:getDataDir() .. "/data/dict")) -- should be empty during unit tests + assert.is_true(util.isEmptyDir(DataStorage:getDataDir() .. "/history")) -- should be empty during unit tests end) it("should return false on non-empty dir", function() assert.is_false(util.isEmptyDir(DataStorage:getDataDir())) -- should contain subdirectories