To: vim_dev@googlegroups.com Subject: Patch 8.2.4784 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4784 Problem: Lamba test with timer is flaky. Solution: Adjust sleep time on retry. Files: src/testdir/test_lambda.vim *** ../vim-8.2.4783/src/testdir/test_lambda.vim 2022-04-18 15:21:13.344896813 +0100 --- src/testdir/test_lambda.vim 2022-04-18 16:12:02.823955962 +0100 *************** *** 58,63 **** --- 58,64 ---- 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,71 **** }) END call v9.CheckScriptSuccess(lines) ! sleep 50m call assert_equal('done', g:result) unlet g:result endfunc --- 66,73 ---- }) END call v9.CheckScriptSuccess(lines) ! " 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 *** ../vim-8.2.4783/src/version.c 2022-04-18 15:45:19.704436521 +0100 --- src/version.c 2022-04-18 16:13:50.115904756 +0100 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4784, /**/ -- hundred-and-one symptoms of being an internet addict: 27. You refer to your age as 3.x. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///