aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/fileio_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-01-17 00:12:59 +0100
committerJustin M. Keyes <justinkz@gmail.com>2023-01-17 00:19:30 +0100
commit665a7dafaf892b31285f35a43a90fc6e968fd7da (patch)
tree7da94ed4e3e9eaa4018a84ba43234bb39c598c35 /test/functional/core/fileio_spec.lua
parent6ec7bcb6184f562157eebc8d0f25f78ba333c6a5 (diff)
downloadrneovim-665a7dafaf892b31285f35a43a90fc6e968fd7da.tar.gz
rneovim-665a7dafaf892b31285f35a43a90fc6e968fd7da.tar.bz2
rneovim-665a7dafaf892b31285f35a43a90fc6e968fd7da.zip
refactor(tests): lift retry() into assert_log()
Diffstat (limited to 'test/functional/core/fileio_spec.lua')
-rw-r--r--test/functional/core/fileio_spec.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua
index bbf2202f0d..4e9891a4de 100644
--- a/test/functional/core/fileio_spec.lua
+++ b/test/functional/core/fileio_spec.lua
@@ -295,9 +295,7 @@ describe('tmpdir', function()
clear({ env={ NVIM_LOG_FILE=testlog, TMPDIR=faketmp, } })
matches(tmproot_pat, funcs.stdpath('run')) -- Tickle vim_mktempdir().
-- Assert that broken tmpdir root was handled.
- retry(nil, 1000, function()
- assert_log('tempdir root not a directory', testlog, 100)
- end)
+ assert_log('tempdir root not a directory', testlog, 100)
-- "…/nvim.<user>/" has wrong permissions:
skip(is_os('win'), 'TODO(justinmk): need setfperm/getfperm on Windows. #8244')
@@ -308,9 +306,7 @@ describe('tmpdir', function()
clear({ env={ NVIM_LOG_FILE=testlog, TMPDIR=faketmp, } })
matches(tmproot_pat, funcs.stdpath('run')) -- Tickle vim_mktempdir().
-- Assert that broken tmpdir root was handled.
- retry(nil, 1000, function()
- assert_log('tempdir root has invalid permissions', testlog, 100)
- end)
+ assert_log('tempdir root has invalid permissions', testlog, 100)
end)
it('too long', function()