test: fix flaky tests
This commit is contained in:
parent
af04969c43
commit
4df43ad5f5
5 changed files with 31 additions and 21 deletions
|
|
@ -12,14 +12,10 @@ local FIELD_META = constants.FIELD_META
|
|||
|
||||
local M = {}
|
||||
|
||||
local function touch_dir(path)
|
||||
uv.fs_mkdir(path, 448) -- 0700
|
||||
end
|
||||
|
||||
local function ensure_trash_dir(path)
|
||||
touch_dir(path)
|
||||
touch_dir(fs.join(path, "info"))
|
||||
touch_dir(fs.join(path, "files"))
|
||||
local mode = 448 -- 0700
|
||||
fs.mkdirp(fs.join(path, "info"), mode)
|
||||
fs.mkdirp(fs.join(path, "files"), mode)
|
||||
end
|
||||
|
||||
---Gets the location of the home trash dir, creating it if necessary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue