patch 7.4.1483
Problem: A one-time callback is not used for a raw channel.
Solution: Use a one-time callback when it exists.
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py
index 9a3c921..02e6ba3 100644
--- a/src/testdir/test_channel.py
+++ b/src/testdir/test_channel.py
@@ -62,6 +62,9 @@
if decoded[1] == 'hello!':
# simply send back a string
response = "got it"
+ elif decoded[1].startswith("echo "):
+ # send back the argument
+ response = decoded[1][5:]
elif decoded[1] == 'make change':
# Send two ex commands at the same time, before
# replying to the request.