From 48967695c441d13bc9faa8aae4bed8d6fb5bdc14 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 16 Apr 2018 23:35:58 +0200 Subject: test: tui_spec.lua: relax test (#8289) Sometimes an extra FocusGained/FocusLost event might trigger. This doesn't matter, we just want to test that the events were received in cmdline-mode. --- test/functional/terminal/tui_spec.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 2f9abfd3f6..0ae5802a01 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -387,15 +387,7 @@ describe('tui FocusGained/FocusLost', function() -- Exit cmdline-mode. Redraws from timers/events are blocked during -- cmdline-mode, so the buffer won't be updated until we exit cmdline-mode. feed_data('\n') - screen:expect([[ - {1: } | - lost | - gained | - {4:~ }| - {5:[No Name] [+] }| - : | - {3:-- TERMINAL --} | - ]]) + screen:expect('lost'..(' '):rep(46)..'\ngained', nil, nil, nil, true) end) end) -- cgit