From 3bdb8da20acf34673b2c2028d15e7ce6da4c792a Mon Sep 17 00:00:00 2001 From: Kei Kamikawa Date: Thu, 30 Apr 2020 22:57:54 +0900 Subject: [PATCH] fixed functional ex_cmds tests --- test/functional/ex_cmds/digraphs_spec.lua | 2 +- test/functional/ex_cmds/grep_spec.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/functional/ex_cmds/digraphs_spec.lua b/test/functional/ex_cmds/digraphs_spec.lua index 5de2adc191..77ebfd19e2 100644 --- a/test/functional/ex_cmds/digraphs_spec.lua +++ b/test/functional/ex_cmds/digraphs_spec.lua @@ -7,7 +7,7 @@ local Screen = require('test.functional.ui.screen') describe(':digraphs', function() local screen before_each(function() - clear() + clear{args_rm={'--headless'}} screen = Screen.new(65, 8) screen:set_default_attr_ids({ [1] = {bold = true, foreground = Screen.colors.Blue1}, diff --git a/test/functional/ex_cmds/grep_spec.lua b/test/functional/ex_cmds/grep_spec.lua index 43ef1bd424..34fea433ce 100644 --- a/test/functional/ex_cmds/grep_spec.lua +++ b/test/functional/ex_cmds/grep_spec.lua @@ -3,7 +3,9 @@ local clear, feed_command, feed, ok, eval = helpers.clear, helpers.feed_command, helpers.feed, helpers.ok, helpers.eval describe(':grep', function() - before_each(clear) + before_each(function() + clear{args_rm={'--headless'}} + end) it('does not hang on large input #2983', function() if eval("executable('grep')") == 0 then