diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2016-04-10 23:46:11 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2016-04-11 23:07:52 -0300 |
commit | 704f3dd8553ad5239e87e9e3606d9315e069283a (patch) | |
tree | 54d5ac09dc6dd8f1e1acc66b050fe945d2a76f71 /test/functional/helpers.lua | |
parent | 906271b53d34fd65681fbdc1b26c4a540af0d71b (diff) | |
download | rneovim-704f3dd8553ad5239e87e9e3606d9315e069283a.tar.gz rneovim-704f3dd8553ad5239e87e9e3606d9315e069283a.tar.bz2 rneovim-704f3dd8553ad5239e87e9e3606d9315e069283a.zip |
Synchronize shada reset helper with other functional tests
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 4e294029ab..919e6e077b 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -59,6 +59,9 @@ end local session, loop_running, last_error local function set_session(s) + if session then + session:exit(0) + end session = s end @@ -218,15 +221,12 @@ local function spawn(argv, merge) end local function clear(extra_cmd) - if session then - session:exit(0) - end local args = {unpack(nvim_argv)} if extra_cmd ~= nil then table.insert(args, '--cmd') table.insert(args, extra_cmd) end - session = spawn(args) + set_session(spawn(args)) end local function insert(...) |