diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2025-03-14 02:09:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-14 09:09:16 +0000 |
commit | 4a5585da7e35a32b1da988d4fc39496d5510e3ae (patch) | |
tree | 71ac32c95c6ab6c9dcd55fd591a02a4932cd6466 /test/functional/lua/loop_spec.lua | |
parent | 123f8d229eef05869ee4c98dfd4934c22a03b1f6 (diff) | |
download | rneovim-4a5585da7e35a32b1da988d4fc39496d5510e3ae.tar.gz rneovim-4a5585da7e35a32b1da988d4fc39496d5510e3ae.tar.bz2 rneovim-4a5585da7e35a32b1da988d4fc39496d5510e3ae.zip |
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.
Diffstat (limited to 'test/functional/lua/loop_spec.lua')
-rw-r--r-- | test/functional/lua/loop_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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('<cr>') |