mirror of
https://github.com/neovim/neovim.git
synced 2026-03-06 17:17:21 +00:00
test/functional: fix a dependency on the previous test suite
While trying to debug an issue, I discovered that the tests for illegal arguments depended on the prior suite having run and started a session. Let's remove that unintentional dependency by starting our own session before each test.
This commit is contained in:
@@ -111,6 +111,10 @@ end
|
||||
-- Test legal parameters for 'getcwd' and 'haslocaldir'
|
||||
for _, cmd in ipairs {'getcwd', 'haslocaldir'} do
|
||||
describe(cmd..'()', function()
|
||||
before_each(function()
|
||||
clear()
|
||||
end)
|
||||
|
||||
-- Test invalid argument types
|
||||
local err474 = 'Vim(call):E474: Invalid argument'
|
||||
it('fails on string', function()
|
||||
|
||||
Reference in New Issue
Block a user