diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2025-01-03 18:39:42 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2025-01-03 19:24:04 +0100 |
commit | 700a25e6218e016b5adb0ddee740be4618d717a2 (patch) | |
tree | 7d068e82e41e44e3325fef63a6a7342234dc900a /test/functional/testnvim.lua | |
parent | a1ba655dee0f89230ea09712e4df981cc3b15bea (diff) | |
download | rneovim-700a25e6218e016b5adb0ddee740be4618d717a2.tar.gz rneovim-700a25e6218e016b5adb0ddee740be4618d717a2.tar.bz2 rneovim-700a25e6218e016b5adb0ddee740be4618d717a2.zip |
test: include stderr in EOF failure message
Diffstat (limited to 'test/functional/testnvim.lua')
-rw-r--r-- | test/functional/testnvim.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/testnvim.lua b/test/functional/testnvim.lua index d65cbf685e..c8f1c35555 100644 --- a/test/functional/testnvim.lua +++ b/test/functional/testnvim.lua @@ -333,9 +333,9 @@ end function M.expect_exit(fn_or_timeout, ...) local eof_err_msg = 'EOF was received from Nvim. Likely the Nvim process crashed.' if type(fn_or_timeout) == 'function' then - eq(eof_err_msg, t.pcall_err(fn_or_timeout, ...)) + t.matches(eof_err_msg, t.pcall_err(fn_or_timeout, ...)) else - eq( + t.matches( eof_err_msg, t.pcall_err(function(timeout, fn, ...) fn(...) |