From 47e27a4f5b2b2ae20e20a51a6cf0f76078c28698 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 21 Aug 2019 02:32:20 +0200 Subject: tests: support msg with global_helpers.ok (#10820) Ref: https://github.com/neovim/neovim/pull/10768#discussion_r315904175 Co-Authored-By: Justin M. Keyes --- test/functional/eval/timer_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/functional/eval/timer_spec.lua') diff --git a/test/functional/eval/timer_spec.lua b/test/functional/eval/timer_spec.lua index 51d79867dd..5c5b1b42cb 100644 --- a/test/functional/eval/timer_spec.lua +++ b/test/functional/eval/timer_spec.lua @@ -94,7 +94,8 @@ describe('timers', function() command("call timer_start(5, 'MyHandler', {'repeat': -1})") nvim_async("command", "let g:val = 0 | let g:c = getchar()") retry(nil, nil, function() - ok(eval("g:val") >= 2) + local val = eval("g:val") + ok(val >= 2, "expected >= 2, got: "..tostring(val)) eq(0, eval("getchar(1)")) end) feed("c") -- cgit