File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,21 @@ describe('Cluster', () => {
4141 assert . strictEqual ( serveNodes , compareValues . nodes ) ;
4242 if ( clusterConfig ) {
4343 assert . equal ( isConfigDefined , true ) ;
44- assert . deepStrictEqual ( clusterConfig , {
45- clusterAutoscalingConfig : {
46- autoscalingLimits : {
47- minServeNodes : compareValues . minServeNodes ,
48- maxServeNodes : compareValues . maxServeNodes ,
49- } ,
50- autoscalingTargets : {
51- cpuUtilizationPercent : compareValues . cpuUtilizationPercent ,
52- } ,
53- } ,
54- } ) ;
44+ assert . equal (
45+ clusterConfig . clusterAutoscalingConfig ?. autoscalingLimits
46+ ?. minServeNodes ,
47+ compareValues . minServeNodes
48+ ) ;
49+ assert . equal (
50+ clusterConfig . clusterAutoscalingConfig ?. autoscalingLimits
51+ ?. maxServeNodes ,
52+ compareValues . maxServeNodes
53+ ) ;
54+ assert . equal (
55+ clusterConfig . clusterAutoscalingConfig ?. autoscalingTargets
56+ ?. cpuUtilizationPercent ,
57+ compareValues . cpuUtilizationPercent
58+ ) ;
5559 } else {
5660 assert . equal ( isConfigDefined , false ) ;
5761 }
You can’t perform that action at this time.
0 commit comments