diff src/testdir/test_channel.vim @ 7984:c166ff6797cb v7.4.1287

commit https://github.com/vim/vim/commit/74f5e65bcc3d77ab879f56eb977f5038edccbcf8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 21:44:49 2016 +0100 patch 7.4.1287 Problem: Channel test fails. Solution: Use reltimefloat().
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Feb 2016 21:45:04 +0100
parents 5c30ba57aaea
children d3fed9a639db
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -187,7 +187,7 @@ func Test_connect_waittime()
     call ch_close(handle)
   else
     let elapsed = reltime(start)
-    call assert_true(elapsed < 1.0)
+    call assert_true(reltimefloat(elapsed) < 1.0)
   endif
 
   let start = reltime()
@@ -198,6 +198,6 @@ func Test_connect_waittime()
   else
     " Failed connection doesn't wait the full time.
     let elapsed = reltime(start)
-    call assert_true(elapsed < 1.0)
+    call assert_true(reltimefloat(elapsed) < 1.0)
   endif
 endfunc