@@ -342,7 +342,7 @@ mod tests {
342342 . get ( DispatchClass :: Operational )
343343 . max_total
344344 . unwrap_or_else ( || weights. max_block ) ;
345- let base_weight = weights. get ( DispatchClass :: Normal ) . base_extrinsic ;
345+ let base_weight = weights. get ( DispatchClass :: Operational ) . base_extrinsic ;
346346
347347 let weight = operational_limit - base_weight;
348348 let okay =
@@ -378,11 +378,11 @@ mod tests {
378378 // Max normal is 768 (75%)
379379 // 10 is taken for block execution weight
380380 // So normal extrinsic can be 758 weight (-5 for base extrinsic weight)
381- // And Operational can be 256 to produce a full block (-5 for base)
381+ // And Operational can be 246 to produce a full block (-10 for base)
382382 let max_normal =
383383 DispatchInfo { weight : Weight :: from_ref_time ( 753 ) , ..Default :: default ( ) } ;
384384 let rest_operational = DispatchInfo {
385- weight : Weight :: from_ref_time ( 251 ) ,
385+ weight : Weight :: from_ref_time ( 246 ) ,
386386 class : DispatchClass :: Operational ,
387387 ..Default :: default ( )
388388 } ;
@@ -406,15 +406,15 @@ mod tests {
406406 let max_normal =
407407 DispatchInfo { weight : Weight :: from_ref_time ( 753 ) , ..Default :: default ( ) } ;
408408 let rest_operational = DispatchInfo {
409- weight : Weight :: from_ref_time ( 251 ) ,
409+ weight : Weight :: from_ref_time ( 246 ) ,
410410 class : DispatchClass :: Operational ,
411411 ..Default :: default ( )
412412 } ;
413413
414414 let len = 0_usize ;
415415
416416 assert_ok ! ( CheckWeight :: <Test >:: do_pre_dispatch( & rest_operational, len) ) ;
417- // Extra 15 here from block execution + base extrinsic weight
417+ // Extra 20 here from block execution + base extrinsic weight
418418 assert_eq ! ( System :: block_weight( ) . total( ) , Weight :: from_ref_time( 266 ) ) ;
419419 assert_ok ! ( CheckWeight :: <Test >:: do_pre_dispatch( & max_normal, len) ) ;
420420 assert_eq ! ( block_weight_limit( ) , Weight :: from_ref_time( 1024 ) ) ;
@@ -433,7 +433,7 @@ mod tests {
433433 ..Default :: default ( )
434434 } ;
435435 let dispatch_operational = DispatchInfo {
436- weight : Weight :: from_ref_time ( 251 ) ,
436+ weight : Weight :: from_ref_time ( 246 ) ,
437437 class : DispatchClass :: Operational ,
438438 ..Default :: default ( )
439439 } ;
0 commit comments