summaryrefslogtreecommitdiff
path: root/src/testdir/test_channel.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-12-03 15:23:40 +0100
committerBram Moolenaar <Bram@vim.org>2016-12-03 15:23:40 +0100
commit3fad98e8af247af8ebc49730646282a71ccdd47a (patch)
tree6a84741ddaa85443b8b1ace58969ed55e33f612f /src/testdir/test_channel.py
parenta2477fd3490c1166522631eee53c57d34321086a (diff)
downloadvim-git-3fad98e8af247af8ebc49730646282a71ccdd47a.tar.gz
patch 8.0.0122v8.0.0122
Problem: Channel test is still flaky on OS X. Solution: Add a short sleep.
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r--src/testdir/test_channel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py
index 07a22418a..6668752c4 100644
--- a/src/testdir/test_channel.py
+++ b/src/testdir/test_channel.py
@@ -126,6 +126,9 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
print("sending: {0}".format(cmd))
self.request.sendall(cmd.encode('utf-8'))
response = "ok"
+ # Need to wait for Vim to give up, otherwise it
+ # sometimes fails on OS X.
+ time.sleep(0.2)
elif decoded[1] == 'malformed2':
cmd = '"unterminated string'
print("sending: {0}".format(cmd))