From: Bram Moolenaar Date: Mon, 18 Apr 2022 15:14:10 +0000 (+0100) Subject: patch 8.2.4784: lamba test with timer is flaky X-Git-Tag: v8.2.4784 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1693712f0263afb929ebca1159ceb17c1563ee3b;p=vim patch 8.2.4784: lamba test with timer is flaky Problem: Lamba test with timer is flaky. Solution: Adjust sleep time on retry. --- diff --git a/src/testdir/test_lambda.vim b/src/testdir/test_lambda.vim index 77266299e..a5dce93e4 100644 --- a/src/testdir/test_lambda.vim +++ b/src/testdir/test_lambda.vim @@ -58,6 +58,7 @@ endfunc func Test_lambda_vim9cmd_linebreak() CheckFeature timers + let g:test_is_flaky = 1 let lines =<< trim END vim9cmd call timer_start(10, (x) => { # comment @@ -65,7 +66,8 @@ func Test_lambda_vim9cmd_linebreak() }) END call v9.CheckScriptSuccess(lines) - sleep 50m + " sleep longer on a retry + exe 'sleep ' .. [20, 100, 500, 500, 500][g:run_nr] .. 'm' call assert_equal('done', g:result) unlet g:result endfunc diff --git a/src/version.c b/src/version.c index a66d7d5e8..285bced26 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4784, /**/ 4783, /**/