From 4a5585da7e35a32b1da988d4fc39496d5510e3ae Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 14 Mar 2025 02:09:16 -0700 Subject: test: flaky loop_spec.lua #32885 Problem: Test may fail because it matches a Lua table address, and the following whitespace may differ depending on the stringified address length: test/functional/lua/loop_spec.lua:233: Row 3 did not match. Expected: |{3: }| |{9:Error executing callback:} | |*{9:uv_idle_t: 0x{MATCH:%w+}} | |{6:Press ENTER or type command to continue}^ | Actual: |{3: }| |{9:Error executing callback:} | |*{9:uv_idle_t: 0xd4c2820a00} | |{6:Press ENTER or type command to continue}^ | Solution: Match a variable amount of whitespace. --- test/functional/lua/loop_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/lua/loop_spec.lua b/test/functional/lua/loop_spec.lua index fbf70d7be7..0ee101a0eb 100644 --- a/test/functional/lua/loop_spec.lua +++ b/test/functional/lua/loop_spec.lua @@ -233,7 +233,7 @@ describe('vim.uv', function() screen:expect([[ {3: }| {9:Error executing callback:} | - {9:uv_idle_t: 0x{MATCH:%w+}} | + {9:uv_idle_t: 0x{MATCH:%w+}}{MATCH: +}| {6:Press ENTER or type command to continue}^ | ]]) feed('') -- cgit