aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRaymond W. Ko <raymond.w.ko@gmail.com>2021-04-14 20:42:34 -0400
committerGitHub <noreply@github.com>2021-04-14 20:42:34 -0400
commite915ec47f3ce378ad3577fedc2a3119d62039894 (patch)
treeea65a8e00abc0fab7ed9804e160f724c4587621e /test
parent3b01e37d09933cca8b957b7517d7f7345d4ccc4f (diff)
downloadrneovim-e915ec47f3ce378ad3577fedc2a3119d62039894.tar.gz
rneovim-e915ec47f3ce378ad3577fedc2a3119d62039894.tar.bz2
rneovim-e915ec47f3ce378ad3577fedc2a3119d62039894.zip
tests/functional: delete temp file created during test run (#14363)
Diffstat (limited to 'test')
-rw-r--r--test/functional/autoread/focus_spec.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/autoread/focus_spec.lua b/test/functional/autoread/focus_spec.lua
index 1d52e9948f..3f9a0ad09b 100644
--- a/test/functional/autoread/focus_spec.lua
+++ b/test/functional/autoread/focus_spec.lua
@@ -9,6 +9,7 @@ local feed_data = thelpers.feed_data
if helpers.pending_win32(pending) then return end
describe('autoread TUI FocusGained/FocusLost', function()
+ local f1 = 'xtest-foo'
local screen
before_each(function()
@@ -17,8 +18,12 @@ describe('autoread TUI FocusGained/FocusLost', function()
..'", "-u", "NONE", "-i", "NONE", "--cmd", "set noswapfile noshowcmd noruler"]')
end)
+ teardown(function()
+ os.remove(f1)
+ end)
+
it('external file change', function()
- local path = 'xtest-foo'
+ local path = f1
local expected_addition = [[
line 1
line 2