Mercurial > public > mercurial-scm > hg-stable
diff tests/test-http-api-httpv2.t @ 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 | 89a16704114c |
children | 3ea8323d6f95 |
line wrap: on
line diff
--- a/tests/test-http-api-httpv2.t Sat Apr 14 12:11:24 2018 -0700 +++ b/tests/test-http-api-httpv2.t Sat Apr 14 14:37:23 2018 -0700 @@ -175,7 +175,7 @@ s> Transfer-Encoding: chunked\r\n s> \r\n s> 27\r\n - s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response + s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response s> \r\n s> 0\r\n s> \r\n @@ -202,10 +202,10 @@ s> Transfer-Encoding: chunked\r\n s> \r\n s> 27\r\n - s> \x1f\x00\x00\x01\x00\x02\x01B + s> \x1f\x00\x00\x01\x00\x02\x012 s> X\x1dcustomreadonly bytes response s> \r\n - received frame(size=31; request=1; stream=2; streamflags=stream-begin; type=bytes-response; flags=eos) + received frame(size=31; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=eos) s> 0\r\n s> \r\n response: [b'customreadonly bytes response'] @@ -316,7 +316,7 @@ s> Transfer-Encoding: chunked\r\n s> \r\n s> 27\r\n - s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response + s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response s> \r\n s> 0\r\n s> \r\n @@ -439,7 +439,7 @@ s> Transfer-Encoding: chunked\r\n s> \r\n s> 27\r\n - s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response + s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response s> \r\n s> 0\r\n s> \r\n @@ -472,10 +472,10 @@ s> Transfer-Encoding: chunked\r\n s> \r\n s> 27\r\n - s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response + s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response s> \r\n s> 27\r\n - s> \x1f\x00\x00\x03\x00\x02\x00BX\x1dcustomreadonly bytes response + s> \x1f\x00\x00\x03\x00\x02\x002X\x1dcustomreadonly bytes response s> \r\n s> 0\r\n s> \r\n @@ -510,10 +510,10 @@ s> Transfer-Encoding: chunked\r\n s> \r\n s> 28\r\n - s> \x00\x00\x03\x00\x02\x01B\xa3Fphases@Ibookmarks@Jnamespaces@ + s> \x00\x00\x03\x00\x02\x012\xa3Fphases@Ibookmarks@Jnamespaces@ s> \r\n s> 9\r\n - s> \x01\x00\x00\x01\x00\x02\x00B\xa0 + s> \x01\x00\x00\x01\x00\x02\x002\xa0 s> \r\n s> 0\r\n s> \r\n