aboutsummaryrefslogtreecommitdiff
path: root/test/functional/job/job_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/job/job_spec.lua')
-rw-r--r--test/functional/job/job_spec.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/job/job_spec.lua b/test/functional/job/job_spec.lua
index 0d561ec4d7..c74ae047c5 100644
--- a/test/functional/job/job_spec.lua
+++ b/test/functional/job/job_spec.lua
@@ -6,10 +6,14 @@ local clear, nvim, eq, neq, ok, expect, eval, next_message, run, stop, session
helpers.stop, helpers.session
local nvim_dir, insert = helpers.nvim_dir, helpers.insert
-local channel = nvim('get_api_info')[1]
describe('jobs', function()
- before_each(clear)
+ local channel
+
+ before_each(function()
+ clear()
+ channel = nvim('get_api_info')[1]
+ end)
-- Creates the string to make an autocmd to notify us.
local notify_str = function(expr1, expr2)