@@ -89,7 +89,7 @@ func TestBlkioSetWeight(t *testing.T) {
8989 "blkio.weight" : strconv .Itoa (weightBefore ),
9090 })
9191
92- helper .CgroupData .config .BlkioWeight = weightAfter
92+ helper .CgroupData .config .Resources . BlkioWeight = weightAfter
9393 blkio := & BlkioGroup {}
9494 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
9595 t .Fatal (err )
@@ -120,7 +120,7 @@ func TestBlkioSetWeightDevice(t *testing.T) {
120120 "blkio.weight_device" : weightDeviceBefore ,
121121 })
122122
123- helper .CgroupData .config .BlkioWeightDevice = []* configs.WeightDevice {wd }
123+ helper .CgroupData .config .Resources . BlkioWeightDevice = []* configs.WeightDevice {wd }
124124 blkio := & BlkioGroup {}
125125 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
126126 t .Fatal (err )
@@ -157,7 +157,7 @@ func TestBlkioSetMultipleWeightDevice(t *testing.T) {
157157 "blkio.weight_device" : weightDeviceBefore ,
158158 })
159159
160- helper .CgroupData .config .BlkioWeightDevice = []* configs.WeightDevice {wd1 , wd2 }
160+ helper .CgroupData .config .Resources . BlkioWeightDevice = []* configs.WeightDevice {wd1 , wd2 }
161161 blkio := & BlkioGroup {}
162162 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
163163 t .Fatal (err )
@@ -529,7 +529,7 @@ func TestBlkioSetThrottleReadBpsDevice(t *testing.T) {
529529 "blkio.throttle.read_bps_device" : throttleBefore ,
530530 })
531531
532- helper .CgroupData .config .BlkioThrottleReadBpsDevice = []* configs.ThrottleDevice {td }
532+ helper .CgroupData .config .Resources . BlkioThrottleReadBpsDevice = []* configs.ThrottleDevice {td }
533533 blkio := & BlkioGroup {}
534534 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
535535 t .Fatal (err )
@@ -559,7 +559,7 @@ func TestBlkioSetThrottleWriteBpsDevice(t *testing.T) {
559559 "blkio.throttle.write_bps_device" : throttleBefore ,
560560 })
561561
562- helper .CgroupData .config .BlkioThrottleWriteBpsDevice = []* configs.ThrottleDevice {td }
562+ helper .CgroupData .config .Resources . BlkioThrottleWriteBpsDevice = []* configs.ThrottleDevice {td }
563563 blkio := & BlkioGroup {}
564564 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
565565 t .Fatal (err )
@@ -589,7 +589,7 @@ func TestBlkioSetThrottleReadIOpsDevice(t *testing.T) {
589589 "blkio.throttle.read_iops_device" : throttleBefore ,
590590 })
591591
592- helper .CgroupData .config .BlkioThrottleReadIOPSDevice = []* configs.ThrottleDevice {td }
592+ helper .CgroupData .config .Resources . BlkioThrottleReadIOPSDevice = []* configs.ThrottleDevice {td }
593593 blkio := & BlkioGroup {}
594594 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
595595 t .Fatal (err )
@@ -619,7 +619,7 @@ func TestBlkioSetThrottleWriteIOpsDevice(t *testing.T) {
619619 "blkio.throttle.write_iops_device" : throttleBefore ,
620620 })
621621
622- helper .CgroupData .config .BlkioThrottleWriteIOPSDevice = []* configs.ThrottleDevice {td }
622+ helper .CgroupData .config .Resources . BlkioThrottleWriteIOPSDevice = []* configs.ThrottleDevice {td }
623623 blkio := & BlkioGroup {}
624624 if err := blkio .Set (helper .CgroupPath , helper .CgroupData .config ); err != nil {
625625 t .Fatal (err )
0 commit comments