pytest: test_gossip_jsonrpc can always test aliases.

The whole test is under DEVELOPER anyway, but even if it weren't it
would work fine.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-06-04 14:08:41 +09:30
parent 035d6067e4
commit e4457e59ed

View file

@ -2455,8 +2455,6 @@ class LightningDTests(BaseLightningDTests):
assert n2['nodeid'] == l2.info['id'] assert n2['nodeid'] == l2.info['id']
# Might not have seen other node-announce yet. # Might not have seen other node-announce yet.
# TODO(cdecker) Can't check these without DEVELOPER=1, re-enable after we get alias and color into getinfo
if DEVELOPER:
assert n1['alias'].startswith('JUNIORBEAM') assert n1['alias'].startswith('JUNIORBEAM')
assert n1['color'] == '0266e4' assert n1['color'] == '0266e4'
if 'alias' not in n2: if 'alias' not in n2: