File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -268,11 +268,17 @@ fn test_ongoing_rav_requests() {
268268 assert_eq ! ( tracker. get_total_fee( ) , 30 ) ;
269269 assert_eq ! ( tracker. get_ravable_total_fee( ) , 30 ) ;
270270
271+ tracker. add ( allocation_id_2, 1 , get_current_timestamp_u64_ns ( ) ) ;
272+
273+ assert_eq ! ( tracker. get_heaviest_allocation_id( ) , Some ( allocation_id_1) ) ;
274+ assert_eq ! ( tracker. get_total_fee( ) , 31 ) ;
275+ assert_eq ! ( tracker. get_ravable_total_fee( ) , 31 ) ;
276+
271277 tracker. finish_rav_request ( allocation_id_2) ;
272278
273279 assert_eq ! ( tracker. get_heaviest_allocation_id( ) , Some ( allocation_id_2) ) ;
274- assert_eq ! ( tracker. get_total_fee( ) , 60 ) ;
275- assert_eq ! ( tracker. get_ravable_total_fee( ) , 60 ) ;
280+ assert_eq ! ( tracker. get_total_fee( ) , 61 ) ;
281+ assert_eq ! ( tracker. get_ravable_total_fee( ) , 61 ) ;
276282}
277283
278284#[ test]
You can’t perform that action at this time.
0 commit comments