@@ -135,7 +135,9 @@ async fn test_build_validation_plan() -> Result<(), Error> {
135135 ] ;
136136
137137 let work_info = WorkInfo {
138- node_id : Address :: from_str ( "0x0000000000000000000000000000000000000000" ) . unwrap ( ) ,
138+ node_id : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
139+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
140+ work_units : U256 :: from ( 1000 ) ,
139141 ..Default :: default ( )
140142 } ;
141143 for work_key in work_keys. clone ( ) {
@@ -337,7 +339,7 @@ async fn test_group_e2e_accept() -> Result<(), Error> {
337339
338340 const FILE_SHA : & str = "c257e3d3fe866a00df1285f8bbbe601fed6b85229d983bbbb75e19a068346641" ;
339341 const GROUP_ID : & str = "3450756714426841564" ;
340- const NODE_ADDRESS : & str = "0x0000000000000000000000000000000000000000 " ;
342+ const NODE_ADDRESS : & str = "0xA1DDe6E4d2F127960e7C61f90a8b354Bc306bd2a " ;
341343
342344 let mock_storage = MockStorageProvider :: new ( ) ;
343345 mock_storage
@@ -372,7 +374,7 @@ async fn test_group_e2e_accept() -> Result<(), Error> {
372374 format ! ( "/statusgroup/dataset/samplingn-{}-1-0.parquet" , GROUP_ID ) . as_str ( ) ,
373375 )
374376 . with_status ( 200 )
375- . with_body ( r#"{"status": "accept"}"# )
377+ . with_body ( r#"{"status": "accept", "input_flops": 1, "output_flops": 1000 }"# )
376378 . create ( ) ;
377379
378380 let storage_provider = Arc :: new ( mock_storage) ;
@@ -403,6 +405,8 @@ async fn test_group_e2e_accept() -> Result<(), Error> {
403405
404406 let work_info = WorkInfo {
405407 node_id : Address :: from_str ( NODE_ADDRESS ) . unwrap ( ) ,
408+ work_units : U256 :: from ( 1000 ) ,
409+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
406410 ..Default :: default ( )
407411 } ;
408412 for work_key in work_keys. clone ( ) {
@@ -475,12 +479,12 @@ async fn test_group_e2e_work_unit_mismatch() -> Result<(), Error> {
475479 ..Default :: default ( )
476480 } ;
477481
478- const HONEST_NODE_ADDRESS : & str = "0x0000000000000000000000000000000000000001 " ;
482+ const HONEST_NODE_ADDRESS : & str = "0x182555b0Ab39EE313f22c07dbe88D950385b1f69 " ;
479483 const HONEST_FILE_SHA : & str =
480484 "c257e3d3fe866a00df1285f8bbbe601fed6b85229d983bbbb75e19a068346641" ;
481485 const EXCESSIVE_FILE_SHA : & str =
482486 "88e4672c19e5a10bff2e23d223f8bfc38ae1425feaa18db9480e631a4fd98edf" ;
483- const EXCESSIVE_NODE_ADDRESS : & str = "0x0000000000000000000000000000000000000002 " ;
487+ const EXCESSIVE_NODE_ADDRESS : & str = "0x182555b0Ab39EE313f22c07dbe88D950385b1f68 " ;
484488 const GROUP_ID : & str = "3456714426841564" ;
485489
486490 let mock_storage = MockStorageProvider :: new ( ) ;
@@ -562,11 +566,13 @@ async fn test_group_e2e_work_unit_mismatch() -> Result<(), Error> {
562566 let work_info_1 = WorkInfo {
563567 node_id : Address :: from_str ( HONEST_NODE_ADDRESS ) . unwrap ( ) ,
564568 work_units : U256 :: from ( EXPECTED_WORK_UNITS ) ,
569+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
565570 ..Default :: default ( )
566571 } ;
567572 let work_info_2 = WorkInfo {
568573 node_id : Address :: from_str ( EXCESSIVE_NODE_ADDRESS ) . unwrap ( ) ,
569574 work_units : U256 :: from ( EXCESSIVE_WORK_UNITS ) ,
575+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f67" ) . unwrap ( ) ,
570576 ..Default :: default ( )
571577 } ;
572578
@@ -781,6 +787,8 @@ async fn test_incomplete_group_recovery() -> Result<(), Error> {
781787 // Add work info for only the first file (making the group incomplete)
782788 let work_info = WorkInfo {
783789 node_id : Address :: from_str ( "0x0000000000000000000000000000000000000000" ) . unwrap ( ) ,
790+ work_units : U256 :: from ( 1000 ) ,
791+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
784792 ..Default :: default ( )
785793 } ;
786794 validator
@@ -880,6 +888,8 @@ async fn test_expired_incomplete_group_soft_invalidation() -> Result<(), Error>
880888 // Add work info for only the first file (making the group incomplete)
881889 let work_info = WorkInfo {
882890 node_id : Address :: from_str ( "0x0000000000000000000000000000000000000000" ) . unwrap ( ) ,
891+ work_units : U256 :: from ( 1000 ) ,
892+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
883893 ..Default :: default ( )
884894 } ;
885895 validator
@@ -981,7 +991,9 @@ async fn test_incomplete_group_status_tracking() -> Result<(), Error> {
981991
982992 // Add work info for only 1 of 3 expected files
983993 let work_info = WorkInfo {
984- node_id : Address :: from_str ( "0x0000000000000000000000000000000000000000" ) . unwrap ( ) ,
994+ node_id : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
995+ work_units : U256 :: from ( 1000 ) ,
996+ provider : Address :: from_str ( "0x182555b0Ab39EE313f22c07dbe88D950385b1f68" ) . unwrap ( ) ,
985997 ..Default :: default ( )
986998 } ;
987999 validator
0 commit comments