# HG changeset patch # User Bram Moolenaar # Date 1681404303 -7200 # Node ID 869aa24e12cba599daa3a9fdcbf97da75a6bfb36 # Parent 2161817507ff7d5b7af517499131f5e4994d1d91 patch 9.0.1449: test for prompt buffer is flaky Commit: https://github.com/vim/vim/commit/ff6c230051ed2a2dbbbd517f51fe00c8ea27961b Author: Bram Moolenaar Date: Thu Apr 13 17:32:23 2023 +0100 patch 9.0.1449: test for prompt buffer is flaky Problem: Test for prompt buffer is flaky. Solution: Use WaitForAssert() instead of TermWait(). (Ozaki Kiichi, closes #12247) diff --git a/src/testdir/test_prompt_buffer.vim b/src/testdir/test_prompt_buffer.vim --- a/src/testdir/test_prompt_buffer.vim +++ b/src/testdir/test_prompt_buffer.vim @@ -282,20 +282,16 @@ func Test_prompt_appending_while_hidden( call TermWait(buf) call term_sendkeys(buf, "exit\") - call TermWait(buf) - call assert_notmatch('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, ":call DoAppend()\") - call TermWait(buf) - call assert_notmatch('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "i") - call TermWait(buf) - call assert_match('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\=DoAppend()\") - call TermWait(buf) - call assert_match('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\") call StopVimInTerminal(buf) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1449, +/**/ 1448, /**/ 1447,