summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-19 19:44:32 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-19 19:44:32 +0100
commit373a876d0cac5f8aff352e8ca42fdac88a1a7c3b (patch)
treef4adfbfb24851b10d44032a23efc8962d99a1c39 /src/testdir/test_channel.vim
parent5e94a29ebbde10dd973d58f1adba9a2fc83877d1 (diff)
patch 8.2.0414: channel connect_waittime() test is flakyv8.2.0414
Problem: Channel connect_waittime() test is flaky. Solution: Set the test_is_flaky flag. Use test_is_flaky for more tests.
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index a820be548f..abc27d5eb2 100644
--- 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()