From 208013ae399a28d78587979fb35a01bd335a855c Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 10 May 2015 12:47:31 +0200 Subject: test/terminal: fix indeterminism in colorcolumn screen test Previously, the screen test was expecting the screen state to be identical to the previous screen test in `thelpers.screen_setup()`, which is indeterministic. (The later screen test can accidentally still see the previous identical state). The solution is to add a test for a intermediate different state. --- test/functional/terminal/window_spec.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/functional/terminal/window_spec.lua b/test/functional/terminal/window_spec.lua index 234950638e..c2b9390a11 100644 --- a/test/functional/terminal/window_spec.lua +++ b/test/functional/terminal/window_spec.lua @@ -14,8 +14,17 @@ describe('terminal window', function() describe('with colorcolumn set', function() before_each(function() - feed(':set colorcolumn=20i') - wait() + feed('') + screen:expect([[ + tty ready | + {2: } | + | + | + | + ^ | + | + ]]) + feed(':set colorcolumn=20i') end) it('wont show the color column', function() -- cgit