refactor(tests): use assert_alive() #15546

This commit is contained in:
Justin M. Keyes
2021-09-01 09:42:53 -07:00
committed by GitHub
parent 0603eba6e7
commit 6751d6254b
24 changed files with 55 additions and 41 deletions

View File

@@ -1,4 +1,5 @@
local helpers = require('test.functional.helpers')(after_each)
local assert_alive = helpers.assert_alive
local eval, command, feed = helpers.eval, helpers.command, helpers.feed
local eq, clear, insert = helpers.eq, helpers.clear, helpers.insert
local expect, write_file = helpers.expect, helpers.write_file
@@ -116,6 +117,6 @@ describe('python3 provider', function()
feed_command("exe 'split' tempname()")
feed_command("bwipeout!")
feed_command('help help')
eq(2, eval('1+1')) -- Still alive?
assert_alive()
end)
end)