File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -4271,7 +4271,7 @@ pub(super) mod tests {
4271
4271
// std::fs::read(path)
4272
4272
// }
4273
4273
// #[cfg(target_family = "wasm")]
4274
- fn fetch_file ( filename : & str ) -> std:: io:: Result < Vec < u8 > > {
4274
+ pub fn fetch_file ( filename : & str ) -> std:: io:: Result < Vec < u8 > > {
4275
4275
use crate :: proofs:: circuit_blobs:: CIRCUIT_BLOBS ;
4276
4276
use std:: io:: Read ;
4277
4277
Original file line number Diff line number Diff line change @@ -972,16 +972,14 @@ mod tests {
972
972
#[ cfg( target_family = "wasm" ) ]
973
973
use wasm_bindgen_test:: wasm_bindgen_test as test;
974
974
975
- use std:: path:: Path ;
976
-
977
975
use mina_hasher:: Fp ;
978
976
use mina_p2p_messages:: { binprot:: BinProtRead , v2} ;
979
977
980
- use crate :: proofs:: { provers :: devnet_circuit_directory , transaction:: tests:: panic_in_ci} ;
978
+ use crate :: proofs:: transaction:: tests:: { fetch_file , panic_in_ci} ;
981
979
982
980
use super :: * ;
983
981
984
- // #[test]
982
+ #[ test]
985
983
fn test_verify_zkapp ( ) {
986
984
use mina_p2p_messages:: binprot;
987
985
use mina_p2p_messages:: binprot:: macros:: { BinProtRead , BinProtWrite } ;
@@ -993,10 +991,6 @@ mod tests {
993
991
proof : v2:: PicklesProofProofsVerified2ReprStableV2 ,
994
992
}
995
993
996
- let base_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) )
997
- . join ( devnet_circuit_directory ( ) )
998
- . join ( "tests" ) ;
999
-
1000
994
let cases = [
1001
995
"verify_zapp_4af39d1e141859c964fe32b4e80537d3bd8c32d75e2754c0b869738006d25251_0.binprot" ,
1002
996
"verify_zapp_dc518dc7e0859ea6ffa0cd42637cdcc9c79ab369dfb7ff44c8a89b1219f98728_0.binprot" ,
@@ -1005,7 +999,7 @@ mod tests {
1005
999
] ;
1006
1000
1007
1001
for filename in cases {
1008
- let Ok ( file) = std :: fs :: read ( base_dir . join ( filename) ) else {
1002
+ let Ok ( file) = fetch_file ( filename) else {
1009
1003
panic_in_ci ( ) ;
1010
1004
return ;
1011
1005
} ;
You can’t perform that action at this time.
0 commit comments