mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Fix flaky test
Relax flaky test more Fix another flaky test
This commit is contained in:
@@ -12,7 +12,7 @@ call matchup#perf#tic('testing')
|
||||
call matchup#perf#timeout_start(100)
|
||||
sleep 90m
|
||||
call assert_equal(0, matchup#perf#timeout_check())
|
||||
call assert_true(s:isclose(matchup#perf#timeout(), 10, 0.1))
|
||||
call assert_true(s:isclose(matchup#perf#timeout(), 10, 0.15))
|
||||
sleep 11m
|
||||
call assert_equal(1, matchup#perf#timeout_check())
|
||||
|
||||
@@ -29,8 +29,8 @@ let out = join(out, '\n')
|
||||
let p = '\s\+\([0-9.]\+\)ms'
|
||||
let out = matchlist(out, '\[testing]\_.\{-}checkpoint1' . p . p . p)
|
||||
|
||||
call assert_true(s:isclose(out[1], 80, 0.10))
|
||||
call assert_true(s:isclose(out[2], 10, 0.05))
|
||||
call assert_true(s:isclose(out[3], 100, 0.05))
|
||||
call assert_true(s:isclose(out[1], 80, 0.15))
|
||||
call assert_true(s:isclose(out[2], 10, 0.15))
|
||||
call assert_true(s:isclose(out[3], 100, 0.15))
|
||||
|
||||
call matchup#test#finished()
|
||||
|
||||
Reference in New Issue
Block a user