aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/environ_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-27 15:51:44 +0800
committerGitHub <noreply@github.com>2023-04-27 15:51:44 +0800
commitd321deb4a9b05e9d81b79ac166274f4a6e7981bf (patch)
tree195446b3e2668a53edb44e93223905b9939073d6 /test/functional/vimscript/environ_spec.lua
parentd1bb9bffd5e86d30696969e001af3c3db8ed4bcf (diff)
downloadrneovim-d321deb4a9b05e9d81b79ac166274f4a6e7981bf.tar.gz
rneovim-d321deb4a9b05e9d81b79ac166274f4a6e7981bf.tar.bz2
rneovim-d321deb4a9b05e9d81b79ac166274f4a6e7981bf.zip
test: fix dependencies between test cases (#23343)
Discovered using --shuffle argument of busted.
Diffstat (limited to 'test/functional/vimscript/environ_spec.lua')
-rw-r--r--test/functional/vimscript/environ_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/vimscript/environ_spec.lua b/test/functional/vimscript/environ_spec.lua
index 9e19568249..52218d3cc9 100644
--- a/test/functional/vimscript/environ_spec.lua
+++ b/test/functional/vimscript/environ_spec.lua
@@ -26,6 +26,8 @@ end)
describe('empty $HOME', function()
local original_home = os.getenv('HOME')
+ before_each(clear)
+
-- recover $HOME after each test
after_each(function()
if original_home ~= nil then