Skip to content

Commit

Permalink
Adding correction to cpu scaler e2e test: adding cpu.test.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Ritikaa96 <[email protected]>
  • Loading branch information
Ritikaa96 committed Jan 5, 2022
1 parent b77d587 commit 21bb301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scalers/cpu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ test.serial(`Creating Job should work`, async t => {
)
})

test.serial(`Deployment should scale to 2`, async t => {
test.serial(`Deployment should scale to 5 after 3 minutes`, async t => {
const maxReplicaCount = '5'
// check replicacount on constant triggering :
t.true(await waitForDeploymentReplicaCount(5, 'php-apache', testNamespace, 18, 10000), 'Replica count should be 5 after 180 seconds')
})
test.serial(`Deployment should scale back to 1`, async t => {
test.serial(`Deployment should scale back to 1 after 10 minutes`, async t => {
// check for the scale down :
t.true(await waitForDeploymentReplicaCount(1, 'php-apache', testNamespace, 60, 10000), 'Replica count should be 1 after 10 minutes')
})
Expand Down

0 comments on commit 21bb301

Please sign in to comment.