##// END OF EJS Templates
templatekw: deprecate p1rev/p2rev/p1node/p2node in favor of p1/p2
templatekw: deprecate p1rev/p2rev/p1node/p2node in favor of p1/p2

File last commit:

r40070:393e4432 default
r40511:592feb3f default
Show More
test-wireproto-command-lookup.t
32 lines | 639 B | text/troff | Tads3Lexer
/ tests / test-wireproto-command-lookup.t
$ . $TESTDIR/wireprotohelpers.sh
$ hg init server
$ enablehttpv2 server
$ cd server
$ cat >> .hg/hgrc << EOF
> [web]
> push_ssl = false
> allow-push = *
> EOF
$ hg debugdrawdag << EOF
> C D
> |/
> B
> |
> A
> EOF
$ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
$ cat hg.pid > $DAEMON_PIDS
lookup for known node works
$ sendhttpv2peer << EOF
> command lookup
> key 426bada5c67598ca65036d57d9e4b64b0c1ce7a0
> EOF
creating http peer for wire protocol version 2
sending lookup command
response: b'Bk\xad\xa5\xc6u\x98\xcae\x03mW\xd9\xe4\xb6K\x0c\x1c\xe7\xa0'
$ cat error.log