@@ -618,11 +618,11 @@ func TestRuntimeSpec(t *testing.T) {
618
618
Hostname : newString ("testHostName" ),
619
619
Sysctl : map [string ]string {"key1" : "val1" , "key2" : "val2" , "key3" : "val3" },
620
620
Quotas : aostypes.ServiceQuotas {
621
- CPULimit : newUint64 (2000 ),
622
- RAMLimit : newUint64 (1024 ),
623
- PIDsLimit : newUint64 (10 ),
624
- NoFileLimit : newUint64 (3 ),
625
- TmpLimit : newUint64 (512 ),
621
+ CPUDMIPSLimit : newUint64 (2000 ),
622
+ RAMLimit : newUint64 (1024 ),
623
+ PIDsLimit : newUint64 (10 ),
624
+ NoFileLimit : newUint64 (3 ),
625
+ TmpLimit : newUint64 (512 ),
626
626
},
627
627
Devices : []aostypes.ServiceDevice {
628
628
{Name : "input" , Permissions : "r" },
@@ -822,7 +822,7 @@ func TestRuntimeSpec(t *testing.T) {
822
822
t .Errorf ("Wrong CPU period value: %d" , * runtimeSpec .Linux .Resources .CPU .Period )
823
823
}
824
824
825
- if * runtimeSpec .Linux .Resources .CPU .Quota != int64 (* serviceConfig .Quotas .CPULimit *
825
+ if * runtimeSpec .Linux .Resources .CPU .Quota != int64 (* serviceConfig .Quotas .CPUDMIPSLimit *
826
826
(* runtimeSpec .Linux .Resources .CPU .Period )* uint64 (runtime .NumCPU ())/ nodeInfoProvider .nodeInfo .MaxDMIPs ) {
827
827
t .Errorf ("Wrong CPU quota value: %d" , * runtimeSpec .Linux .Resources .CPU .Quota )
828
828
}
@@ -994,7 +994,7 @@ func TestMinCPUQuota(t *testing.T) {
994
994
ServiceInfo : aostypes.ServiceInfo {ServiceID : "service0" },
995
995
serviceConfig : & aostypes.ServiceConfig {
996
996
Quotas : aostypes.ServiceQuotas {
997
- CPULimit : newUint64 (42 ),
997
+ CPUDMIPSLimit : newUint64 (42 ),
998
998
},
999
999
},
1000
1000
},
0 commit comments