diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-03-05 11:21:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 11:21:37 +0100 |
commit | ba38f35d3e2f37c2289543e6e0c4451c679c5834 (patch) | |
tree | 484499c75698bfbed255e00cda365f3e0d386cf7 | |
parent | 836733dad8ca63a590eded1e3991444bac62b4b8 (diff) | |
download | rneovim-ba38f35d3e2f37c2289543e6e0c4451c679c5834.tar.gz rneovim-ba38f35d3e2f37c2289543e6e0c4451c679c5834.tar.bz2 rneovim-ba38f35d3e2f37c2289543e6e0c4451c679c5834.zip |
test: don't search entire repo for files
Searching the entire repo for a directory named "contrib" causes failure
if there happens to be another subdirectory with the name "contrib".
Instead, point directly to the correct contrib directory.
-rw-r--r-- | test/functional/lua/fs_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/fs_spec.lua b/test/functional/lua/fs_spec.lua index 03de16c079..da60b5c13b 100644 --- a/test/functional/lua/fs_spec.lua +++ b/test/functional/lua/fs_spec.lua @@ -260,7 +260,7 @@ describe('vim.fs', function() ]], test_source_path), exec_lua([[ local dir = ... - local opts = { path = dir, limit = math.huge } + local opts = { path = dir .. "/contrib", limit = math.huge } return vim.tbl_map(vim.fs.basename, vim.fs.find(function(_, d) return d:match('[\\/]contrib$') end, opts)) ]], test_source_path)) end) |