neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4a5585da7e35a32b1da988d4fc39496d5510e3ae
parent 123f8d229eef05869ee4c98dfd4934c22a03b1f6
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Fri, 14 Mar 2025 02:09:16 -0700

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:
Mtest/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 @@ -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>')