summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-05 20:54:36 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-05 20:54:36 +0100
commit5983ad0b038fa689653246cb304fd43e8ae39a78 (patch)
treea1065749450fdcfa5490cd0ad683a7ee33f9a6ed /src/testdir/test_channel.py
parent35ca0e7a1cb6e6daef8e0052a8437801226cef19 (diff)
patch 7.4.1493v7.4.1493
Problem: Wrong callback invoked for zero-id messages. Solution: Don't use the first one-time callback when the sequence number doesn't match.
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r--src/testdir/test_channel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py
index 02e6ba3ecd..a465d65d2f 100644
--- a/src/testdir/test_channel.py
+++ b/src/testdir/test_channel.py
@@ -143,6 +143,11 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
print("sending: {}".format(cmd))
self.request.sendall(cmd.encode('utf-8'))
response = ""
+ elif decoded[1] == 'send zero':
+ cmd = '[0,"zero index"]'
+ print("sending: {}".format(cmd))
+ self.request.sendall(cmd.encode('utf-8'))
+ response = "sent zero"
elif decoded[1] == 'close me':
print("closing")
self.request.close()