From 34a8bcb52977789284b8d813cd5e2fdb5efaf6a8 Mon Sep 17 00:00:00 2001 From: Ether Date: Mon, 28 Oct 2024 10:48:56 -0400 Subject: [PATCH] fix a local test issue of ports reuse --- benchmark/benchmark/config.py | 1 - benchmark/fabfile.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmark/benchmark/config.py b/benchmark/benchmark/config.py index bba99df..2f74830 100644 --- a/benchmark/benchmark/config.py +++ b/benchmark/benchmark/config.py @@ -68,7 +68,6 @@ def address_list_to_json(addresses, base_port, faults): num_authorities = len(addresses) for i, (name, hosts) in enumerate(addresses.items()): - port = base_port host = hosts.pop(0) consensus_addr = { 'consensus_to_consensus': f'{host}:{port}', diff --git a/benchmark/fabfile.py b/benchmark/fabfile.py index 746b006..653a027 100644 --- a/benchmark/fabfile.py +++ b/benchmark/fabfile.py @@ -3,10 +3,10 @@ from benchmark.local import LocalBench from benchmark.logs import ParseError, LogParser -from benchmark.utils import Print +from benchmark.utils import Print, BenchError from benchmark.plot import Ploter, PlotError from benchmark.instance import InstanceManager -from benchmark.remote import Bench, BenchError +from benchmark.remote import Bench @task