From c9f63d13b6024085191635efdf50d41de2810e9a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 1 Dec 2025 10:16:31 +0800 Subject: [PATCH] vim-patch:9.1.1938: tests: excessive wait in Test_matchfuzzy_initialized Problem: tests: excessive wait in Test_matchfuzzy_initialized Solution: Use term_wait() instead of the TermWait() wrapper (Corey Hickey) Test_matchfuzzy_initialized is a terminal test, which are specified to be "flaky" and automatically retried. The TermWait wrapper multiplies the specified wait time by higher values for later retries, maxing out at 10x the specified value. This makes tries vim/vim#3 to vim/vim#6 sleep for 20 seconds each, which makes the test very slow to work with. The specified intent of the test (as noted in a comment eight lines above here) is to sleep for 2s. closes: vim/vim#18822 https://github.com/vim/vim/commit/d4f9de889bb155052dabbe17ea4d552068824456 Co-authored-by: Corey Hickey --- test/old/testdir/test_matchfuzzy.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/old/testdir/test_matchfuzzy.vim b/test/old/testdir/test_matchfuzzy.vim index 833743faa4..c817337eeb 100644 --- a/test/old/testdir/test_matchfuzzy.vim +++ b/test/old/testdir/test_matchfuzzy.vim @@ -311,7 +311,9 @@ func Test_matchfuzzy_initialized() let buf = RunVimInTerminal('-u NONE -X -Z', {}) call term_sendkeys(buf, ":source XTest_matchfuzzy\n") - call TermWait(buf, 2000) + " Use term_wait directly rather than the TermWait wrapper; otherwise, + " retries become very slow. + call term_wait(buf, 2000) let job = term_getjob(buf) if job_status(job) == "run"