mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user