Skip to content

Commit

Permalink
fix: Test is less restrictive to allow changes (#1160)
Browse files Browse the repository at this point in the history
* Test is less restrictive to allow changes

* fix: Test is less restrictive to allow changes
  • Loading branch information
danieljbruce committed Sep 19, 2022
1 parent f5991bb commit 7d05b96
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions system-test/cluster.ts
Expand Up @@ -41,17 +41,21 @@ describe('Cluster', () => {
assert.strictEqual(serveNodes, compareValues.nodes);
if (clusterConfig) {
assert.equal(isConfigDefined, true);
assert.deepStrictEqual(clusterConfig, {
clusterAutoscalingConfig: {
autoscalingLimits: {
minServeNodes: compareValues.minServeNodes,
maxServeNodes: compareValues.maxServeNodes,
},
autoscalingTargets: {
cpuUtilizationPercent: compareValues.cpuUtilizationPercent,
},
},
});
assert.equal(
clusterConfig.clusterAutoscalingConfig?.autoscalingLimits
?.minServeNodes,
compareValues.minServeNodes
);
assert.equal(
clusterConfig.clusterAutoscalingConfig?.autoscalingLimits
?.maxServeNodes,
compareValues.maxServeNodes
);
assert.equal(
clusterConfig.clusterAutoscalingConfig?.autoscalingTargets
?.cpuUtilizationPercent,
compareValues.cpuUtilizationPercent
);
} else {
assert.equal(isConfigDefined, false);
}
Expand Down

0 comments on commit 7d05b96

Please sign in to comment.