diff options
Diffstat (limited to 'test/functional')
-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(...) |