diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-04 13:09:50 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-11-04 14:24:05 +0100 |
commit | 697176fc3ea968e5914eda0d0a606ade7e6c285e (patch) | |
tree | cb5e42d1f1a1798e70ee1f732fc5f4477de6b3ef /test/functional/terminal/window_split_tab_spec.lua | |
parent | 377694681cfe89c499064e228d7223ff495dbb13 (diff) | |
download | rneovim-697176fc3ea968e5914eda0d0a606ade7e6c285e.tar.gz rneovim-697176fc3ea968e5914eda0d0a606ade7e6c285e.tar.bz2 rneovim-697176fc3ea968e5914eda0d0a606ade7e6c285e.zip |
test/win: retry unreliable SIGWINCH test
Diffstat (limited to 'test/functional/terminal/window_split_tab_spec.lua')
-rw-r--r-- | test/functional/terminal/window_split_tab_spec.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/functional/terminal/window_split_tab_spec.lua b/test/functional/terminal/window_split_tab_spec.lua index 07cc8020a5..b8d5e6d43f 100644 --- a/test/functional/terminal/window_split_tab_spec.lua +++ b/test/functional/terminal/window_split_tab_spec.lua @@ -7,6 +7,7 @@ local command = helpers.command local eq = helpers.eq local eval = helpers.eval local iswin = helpers.iswin +local retry = helpers.retry describe('terminal', function() local screen @@ -68,16 +69,19 @@ describe('terminal', function() it('forwards resize request to the program', function() feed([[<C-\><C-N>:]]) -- Go to cmdline-mode, so cursor is at bottom. - screen:try_resize(screen._width - 3, screen._height - 2) if iswin() then - -- win: less-precise test, SIGWINCH is noisy there. #7506 - screen:expect{any='rows: 7, cols: 47'} - screen:try_resize(screen._width - 6, screen._height - 3) - screen:expect{any='rows: 4, cols: 41'} + retry(3, nil, function() + -- win: SIGWINCH is unreliable. #7506 + screen:try_resize(screen._width - 3, screen._height - 2) + screen:expect{any='rows: 7, cols: 47'} + screen:try_resize(screen._width - 6, screen._height - 3) + screen:expect{any='rows: 4, cols: 41'} + end) return end + screen:try_resize(screen._width - 3, screen._height - 2) screen:expect([[ tty ready | rows: 7, cols: 47 | |