Skip to content

Commit

Permalink
fix(ci-test): Force CI machine to think it can generate SingleProofs
Browse files Browse the repository at this point in the history
This value, `tx_proving_capability` is read from the networking state,
not directly from the CLI arguments, as this test previously assumed.
  • Loading branch information
Sword-Smith committed Oct 23, 2024
1 parent 5c0242b commit 1de3210
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1385,11 +1385,19 @@ mod tests {
mut main_to_peer_rx,
} = test_setup;

// Force instance to create SingleProofs, otherwise CI and other
// weak machines fail.
let mocked_cli = cli_args::Args {
tx_proving_capability: Some(TxProvingCapability::SingleProof),
tx_proof_upgrade_interval: 100, // seconds
..Default::default()
};
main_loop_handler
.global_state_lock
.lock_guard_mut()
.await
.net
.tx_proving_capability = TxProvingCapability::SingleProof;

main_loop_handler
.global_state_lock
Expand Down

0 comments on commit 1de3210

Please sign in to comment.