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 @@ -872,16 +872,14 @@ mod tests {
872
872
#[ cfg( target_family = "wasm" ) ]
873
873
use wasm_bindgen_test:: wasm_bindgen_test as test;
874
874
875
- use std:: path:: Path ;
876
-
877
875
use mina_hasher:: Fp ;
878
876
use mina_p2p_messages:: { binprot:: BinProtRead , v2} ;
879
877
880
- use crate :: proofs:: { provers :: devnet_circuit_directory , transaction:: tests:: panic_in_ci} ;
878
+ use crate :: proofs:: transaction:: tests:: { fetch_file , panic_in_ci} ;
881
879
882
880
use super :: * ;
883
881
884
- // #[test]
882
+ #[ test]
885
883
fn test_verify_zkapp ( ) {
886
884
use mina_p2p_messages:: binprot;
887
885
use mina_p2p_messages:: binprot:: macros:: { BinProtRead , BinProtWrite } ;
@@ -893,10 +891,6 @@ mod tests {
893
891
proof : v2:: PicklesProofProofsVerified2ReprStableV2 ,
894
892
}
895
893
896
- let base_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) )
897
- . join ( devnet_circuit_directory ( ) )
898
- . join ( "tests" ) ;
899
-
900
894
let cases = [
901
895
"verify_zapp_4af39d1e141859c964fe32b4e80537d3bd8c32d75e2754c0b869738006d25251_0.binprot" ,
902
896
"verify_zapp_dc518dc7e0859ea6ffa0cd42637cdcc9c79ab369dfb7ff44c8a89b1219f98728_0.binprot" ,
@@ -905,7 +899,7 @@ mod tests {
905
899
] ;
906
900
907
901
for filename in cases {
908
- let Ok ( file) = std :: fs :: read ( base_dir . join ( filename) ) else {
902
+ let Ok ( file) = fetch_file ( filename) else {
909
903
panic_in_ci ( ) ;
910
904
return ;
911
905
} ;
You can’t perform that action at this time.
0 commit comments