Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 21897:e0af4660dfc7 v8.2.1498
patch 8.2.1498: on slow systems tests can be flaky
Commit: https://github.com/vim/vim/commit/733d259a83bfdd3e1670cc1665e1bd56501799df
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 20 18:59:06 2020 +0200
patch 8.2.1498: on slow systems tests can be flaky
Problem: On slow systems tests can be flaky.
Solution: Use TermWait() instead of term-wait(). (Yegappan Lakshmanan,
closes #6756)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Aug 2020 19:00:03 +0200 |
parents | 48f9bf2c677d |
children | f64a16f5bff0 |
comparison
equal
deleted
inserted
replaced
21896:4f7b50471a6a | 21897:e0af4660dfc7 |
---|---|
2564 split | 2564 split |
2565 wincmd b | 2565 wincmd b |
2566 call assert_equal(2, winnr()) | 2566 call assert_equal(2, winnr()) |
2567 let buf = term_start(&shell, #{hidden: 1}) | 2567 let buf = term_start(&shell, #{hidden: 1}) |
2568 call popup_create(buf, {}) | 2568 call popup_create(buf, {}) |
2569 call term_wait(buf, 100) | 2569 call TermWait(buf, 100) |
2570 call popup_clear(1) | 2570 call popup_clear(1) |
2571 call assert_equal(2, winnr()) | 2571 call assert_equal(2, winnr()) |
2572 | 2572 |
2573 quit | 2573 quit |
2574 exe 'bwipe! ' .. buf | 2574 exe 'bwipe! ' .. buf |