0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.2.3253: channel test fails randomly

Problem:    Channel test fails randomly.
Solution:   Add a sleep after sending the "echoerr" command. (Michael Soyka)
This commit is contained in:
Bram Moolenaar 2021-07-30 21:56:10 +02:00
parent 4a15504e91
commit 890ee4e2be
3 changed files with 7 additions and 5 deletions

View File

@ -114,6 +114,11 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
print("sending: {0}".format(cmd))
self.request.sendall(cmd.encode('utf-8'))
response = "ok"
# Wait a bit, so that the "ex" command is handled
# before the "ch_evalexpr() returns. Otherwise we are
# outside the try/catch when the "ex" command is
# handled.
time.sleep(0.02)
elif decoded[1] == 'bad command':
cmd = '["ex","foo bar"]'
print("sending: {0}".format(cmd))

View File

@ -253,11 +253,6 @@ endfunc
func Test_communicate_ipv6()
CheckIPv6
" FIXME: this test is very flaky on MS-Windows
if has('win32')
throw 'Skipped: test is very flaky with MS-Windows'
endif
call Test_communicate()
endfunc

View File

@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3253,
/**/
3252,
/**/