Mercurial > vim
diff src/testdir/test_channel.vim @ 19715:e73167dd8cac v8.2.0414
patch 8.2.0414: channel connect_waittime() test is flaky
Commit: https://github.com/vim/vim/commit/373a876d0cac5f8aff352e8ca42fdac88a1a7c3b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 19 19:44:32 2020 +0100
patch 8.2.0414: channel connect_waittime() test is flaky
Problem: Channel connect_waittime() test is flaky.
Solution: Set the test_is_flaky flag. Use test_is_flaky for more tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 19 Mar 2020 19:45:03 +0100 |
parents | 8744a50560cb |
children | b3e93a05c3ca |
line wrap: on
line diff
--- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -23,6 +23,9 @@ let s:chopt = {} " Run "testfunc" after starting the server and stop the server afterwards. func s:run_server(testfunc, ...) call RunServer('test_channel.py', a:testfunc, a:000) + + " communicating with a server can be flaky + let g:test_is_flaky = 1 endfunc " Return a list of open files. @@ -415,6 +418,8 @@ endfunc " Test that trying to connect to a non-existing port fails quickly. func Test_connect_waittime() CheckFunction reltimefloat + " this is timing sensitive + let g:test_is_flaky = 1 call ch_log('Test_connect_waittime()') let start = reltime()