Skip to content

Commit

Permalink
Fixing zkp prover binary failure for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ii-cruz committed Jul 28, 2023
1 parent 6647861 commit a4feab6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ codecov:

ignore:
- metrics-server
- rpc-*
- rpc-client
- rpc-server
- rpc-interface
- spammer
- tools
- zkp-component/zkp-test-gen
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ jobs:
run: df -h /
- name: Generate coverage report
run: cargo llvm-cov report --lcov --output-path coverage.lcov
- name: Disk Space
run: df -h /
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
8 changes: 7 additions & 1 deletion test-utils/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,20 @@ impl<N: NetworkInterface + TestNetwork> Node<N> {
let network = N::build_network(peer_id, block_hash, hub).await;
let zkp_storage: Option<Box<dyn ProofStore>> =
Some(Box::new(DBProofStore::new(env.clone())));

let prover_path = if is_prover_active {
Some(zkp_test_exe())
} else {
None
};
let zkp_proxy = ZKPComponent::with_prover(
BlockchainProxy::from(&blockchain),
Arc::clone(&network),
Box::new(|fut| {
tokio::spawn(fut);
}),
is_prover_active,
Some(zkp_test_exe()),
prover_path,
PathBuf::from(ZKP_TEST_KEYS_PATH),
zkp_storage,
)
Expand Down

0 comments on commit a4feab6

Please sign in to comment.