Skip to content

Commit f3ea4ce

Browse files
committed
fix(test-suite): support multi-coprocessor scenario
1 parent d0a67a9 commit f3ea4ce

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

coprocessor/fhevm-engine/host-listener/src/consumer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub async fn run_consumer(config: ConsumerConfig) -> Result<()> {
8282
let broker_url = config.url; // e.g."amqp://user:pass@localhost:5672";
8383
let broker = Broker::from_url(&broker_url).await?;
8484
let consumer_id =
85-
format!("{}.{}", "copro-eth-host-consumer", config.chain_id);
85+
format!("{}.{}", config.service_name, config.chain_id);
8686
let client =
8787
ListenerConsumer::new(&broker, chain_id.as_u64(), &consumer_id);
8888

test-suite/fhevm/scenarios/two-of-two.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ description: Smallest multi-coprocessor consensus setup for drift and quorum tes
55
topology:
66
count: 2
77
threshold: 2
8+
instances:
9+
- index: 0
10+
args:
11+
host-listener-consumer:
12+
- --service-name=coprocessor-host-listener-consumer
13+
- index: 1
14+
args:
15+
host-listener-consumer:
16+
- --service-name=coprocessor1-host-listener-consumer

0 commit comments

Comments
 (0)