changeset 45109:b1507ab0c6cf

tests: avoid a "magic" nodeid in test-wireproto-command-lookup.t This helps with readability. Differential Revision: https://phab.mercurial-scm.org/D8734
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 13 Dec 2019 22:08:18 -0800
parents a659d5a4d2d5
children 503d0dd2af18
files tests/test-wireproto-command-lookup.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-wireproto-command-lookup.t	Mon Jun 22 13:51:48 2020 +0530
+++ b/tests/test-wireproto-command-lookup.t	Fri Dec 13 22:08:18 2019 -0800
@@ -15,6 +15,7 @@
   > |
   > A
   > EOF
+  $ root_node=$(hg log -r A -T '{node}')
 
   $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
   $ cat hg.pid > $DAEMON_PIDS
@@ -23,7 +24,7 @@
 
   $ sendhttpv2peer << EOF
   > command lookup
-  >     key 426bada5c67598ca65036d57d9e4b64b0c1ce7a0
+  >     key $root_node
   > EOF
   creating http peer for wire protocol version 2
   sending lookup command