Skip to content

Commit

Permalink
Increase number of blobs generated in azure-blob test (kedacore#1485)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com>
  • Loading branch information
ahmelsayed authored and ycabrer committed Mar 1, 2021
1 parent 413908a commit 3841c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scalers/azure-blob.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.serial.cb('Deployment should scale to 2 with 150 blobs on the blob containe
const blobSvc = azure.createBlobService(connectionString)
blobSvc.createContainerIfNotExists('container-name', err => {
t.falsy(err, 'unable to create blob')
async.mapLimit(Array(150).keys(), 50, (n, cb) => blobSvc.createBlockBlobFromText('container-name',`blobsubpath/blob-name-${n}`,'test text', cb), () => {
async.mapLimit(Array(350).keys(), 50, (n, cb) => blobSvc.createBlockBlobFromText('container-name',`blobsubpath/blob-name-${n}`,'test text', cb), () => {
let replicaCount = '0'
for (let i = 0; i < 40 && replicaCount !== '2'; i++) {
replicaCount = sh.exec(`kubectl get deployment.apps/test-deployment --namespace ${defaultNamespace} -o jsonpath="{.spec.replicas}"`).stdout
Expand Down Expand Up @@ -131,7 +131,7 @@ metadata:
spec:
scaleTargetRef:
name: test-deployment
pollingInterval: 20
pollingInterval: 10
maxReplicaCount: 2
cooldownPeriod: 10
triggers:
Expand Down

0 comments on commit 3841c6d

Please sign in to comment.