Skip to content

Commit

Permalink
Update blob test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmelsayed committed Jan 16, 2020
1 parent 1aeb063 commit d5a1cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 4 with 2000 blobs on the blob contain
const blobSvc = azure.createBlobService(connectionString)
blobSvc.createContainerIfNotExists('container-name', err => {
t.falsy(err, 'unable to create blob')
async.mapLimit(Array(2000).keys(), 200, (n, cb) => blobSvc.createBlockBlobFromText('container-name',`blobsubpath/blob-name-${n}`,'test text', cb), () => {
async.mapLimit(Array(2000).keys(), 500, (n, cb) => blobSvc.createBlockBlobFromText('container-name',`blobsubpath/blob-name-${n}`,'test text', cb), () => {
let replicaCount = '0'
for (let i = 0; i < 10 && replicaCount !== '4'; i++) {
replicaCount = sh.exec(`kubectl get deployment.apps/test-deployment --namespace ${defaultNamespace} -o jsonpath="{.spec.replicas}"`).stdout
Expand Down

0 comments on commit d5a1cac

Please sign in to comment.