From 55e81224219adac69094b651aca061a6dc59ec83 Mon Sep 17 00:00:00 2001 From: abeldekat <58370433+abeldekat@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:53:08 +0200 Subject: [PATCH] test(colors): add more sleeping time to ':Colorscheme' test Details: - Test ':Colorscheme'-'accepts several arguments' fails regularly, especially when repeating 'make test_colors' multiple times. The solution is to also use small_transition_time in the third step to compensate for time spent in the previous steps. --- tests/test_colors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_colors.lua b/tests/test_colors.lua index d17a33fa2..69c65f01b 100644 --- a/tests/test_colors.lua +++ b/tests/test_colors.lua @@ -2233,7 +2233,7 @@ T[':Colorscheme']['accepts several arguments'] = function() sleep(default_show_duration - 2 * small_transition_time) expect.match(child.cmd_capture('hi Normal'), 'guifg=#5f87af') - sleep(default_transition_duration + 3 * small_time) + sleep(default_transition_duration + small_time + 2 * small_transition_time) local blue_normal_fg = '#ffd700' expect.match(child.cmd_capture('hi Normal'), 'guifg=' .. blue_normal_fg) end