Mercurial > vim
comparison src/testdir/test_channel.py @ 10458:a57b2284de93 v8.0.0122
commit https://github.com/vim/vim/commit/3fad98e8af247af8ebc49730646282a71ccdd47a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 3 15:23:40 2016 +0100
patch 8.0.0122
Problem: Channel test is still flaky on OS X.
Solution: Add a short sleep.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Dec 2016 15:30:04 +0100 |
parents | 176e34b0d678 |
children | 33a2277b8d4d |
comparison
equal
deleted
inserted
replaced
10457:8a2db028d418 | 10458:a57b2284de93 |
---|---|
124 elif decoded[1] == 'malformed1': | 124 elif decoded[1] == 'malformed1': |
125 cmd = '["ex",":"]wrong!["ex","smi"]' | 125 cmd = '["ex",":"]wrong!["ex","smi"]' |
126 print("sending: {0}".format(cmd)) | 126 print("sending: {0}".format(cmd)) |
127 self.request.sendall(cmd.encode('utf-8')) | 127 self.request.sendall(cmd.encode('utf-8')) |
128 response = "ok" | 128 response = "ok" |
129 # Need to wait for Vim to give up, otherwise it | |
130 # sometimes fails on OS X. | |
131 time.sleep(0.2) | |
129 elif decoded[1] == 'malformed2': | 132 elif decoded[1] == 'malformed2': |
130 cmd = '"unterminated string' | 133 cmd = '"unterminated string' |
131 print("sending: {0}".format(cmd)) | 134 print("sending: {0}".format(cmd)) |
132 self.request.sendall(cmd.encode('utf-8')) | 135 self.request.sendall(cmd.encode('utf-8')) |
133 response = "ok" | 136 response = "ok" |