Mercurial > public > mercurial-scm > hg-stable
diff tests/test-wireproto-clientreactor.py @ 37724:deff7cf7eefd
wireprotov2: change frame type and name for command response
There was hole at frame type value 3. And the frame is better
named as a command response.
Differential Revision: https://phab.mercurial-scm.org/D3384
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 14:37:23 -0700 |
parents | 1859b9a7ddef |
children | 86b22a4cfab1 |
line wrap: on
line diff
--- a/tests/test-wireproto-clientreactor.py Sat Apr 14 12:11:24 2018 -0700 +++ b/tests/test-wireproto-clientreactor.py Sat Apr 14 14:37:23 2018 -0700 @@ -130,12 +130,13 @@ action, meta = sendframe( reactor, - ffs(b'%d 0 stream-begin 4 0 foo' % request.requestid)) + ffs(b'%d 0 stream-begin command-response 0 foo' % + request.requestid)) self.assertEqual(action, b'responsedata') action, meta = sendframe( reactor, - ffs(b'%d 0 0 4 eos bar' % request.requestid)) + ffs(b'%d 0 0 command-response eos bar' % request.requestid)) self.assertEqual(action, b'responsedata') if __name__ == '__main__':