From d42657ec7d92b412d26da4f448c1f26d0aa1783f Mon Sep 17 00:00:00 2001 From: eunhhu Date: Tue, 29 Sep 2026 18:05:04 +0100 Subject: Lead pure-serve's usage with pure:// between nodes, and count refusals The usage showed --send OUTPUT=http[s]:// first; links are now the way between nodes (012), so it shows pure:// for a Pure node and HTTP for anything else. The statistics at exit count the streams a node's links were refused (link_refused) and the ones its listener refused (listener_refused), so a wiring mistake is in the numbers too, not only the line on stderr; server_links_refused checks both. --- tests/check.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/check.py') diff --git a/tests/check.py b/tests/check.py index 645b7ae..3c77dc4 100644 --- a/tests/check.py +++ b/tests/check.py @@ -1070,6 +1070,7 @@ def server_links_refused(aup, pure, work): said += [json.loads(line) for line in lines if line.startswith('{"link"')] assert len(said) == 1, said assert stats['a']['link_packets'] <= 8 and stats['a']['link_records'] <= 4, stats['a'] + assert stats['a']['link_refused'] >= 2 and stats['b']['listener_refused'] >= 2, (stats['a'], stats['b']) return {'said': said[0]['error'], 'packets': stats['a']['link_packets']} -- cgit v1.2.3