zcash_extensions: Only run demo builder test if we have parameters

This commit is contained in:
Jack Grigg 2020-06-05 00:30:04 +12:00 committed by Kris Nuttycombe
parent dc9b007e8e
commit 93ffd94af0
1 changed files with 5 additions and 1 deletions

View File

@ -615,7 +615,11 @@ mod tests {
let preimage_1 = [1; 32];
let preimage_2 = [2; 32];
let prover = LocalTxProver::with_default_location().unwrap();
// Only run the test if we have the prover parameters.
let prover = match LocalTxProver::with_default_location() {
Some(prover) => prover,
None => return,
};
//
// Opening transaction