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() {
268
268
assert_eq ! ( tracker. get_total_fee( ) , 30 ) ;
269
269
assert_eq ! ( tracker. get_ravable_total_fee( ) , 30 ) ;
270
270
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
+
271
277
tracker. finish_rav_request ( allocation_id_2) ;
272
278
273
279
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 ) ;
276
282
}
277
283
278
284
#[ test]
You can’t perform that action at this time.
0 commit comments