From 168bb33d1dbbd2969d5e4848fa060311020d705c Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Wed, 2 Oct 2019 21:32:37 +0000 Subject: [PATCH] Bug 1580666 - add missing await --- services/auth/test/containers_test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/auth/test/containers_test.js b/services/auth/test/containers_test.js index f49f05047a7..1bd3f5e05eb 100644 --- a/services/auth/test/containers_test.js +++ b/services/auth/test/containers_test.js @@ -32,7 +32,14 @@ helper.secrets.mockSuite(testing.suiteName(), ['azure', 'gcp'], function(mock, s // zero out the container const blobService = new azure.Blob(credentials); - blobService.deleteBlob(containerName, "Roles", {}); + try { + await blobService.deleteBlob(containerName, "Roles", {}); + } catch (err) { + if (err.code !== 'BlobNotFound') { + throw err; + } + // ignore BlobNotFound here, as that's the desired result + } } });