From d0bbe2c31586463f31a2ccc04881a394224eb6f0 Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Fri, 7 Oct 2022 11:52:31 +0100 Subject: [PATCH] Correct error msg Signed-off-by: Somtochi Onyekwere --- pkg/azure/blob_integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/azure/blob_integration_test.go b/pkg/azure/blob_integration_test.go index 7b2cc7022..58b5b5cc7 100644 --- a/pkg/azure/blob_integration_test.go +++ b/pkg/azure/blob_integration_test.go @@ -281,11 +281,11 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) { g.Expect(err).ToNot(HaveOccurred()) g.Expect(ok).To(BeTrue()) - // BucketExists returns a good error message if the bucket doesn't exist with container level SAS + // BucketExists returns an error if the bucket doesn't exist with container level SAS // since the error code is AuthenticationFailed. ok, err = sasKeyClient.BucketExists(ctx, "non-existent") g.Expect(err).To(HaveOccurred()) - g.Expect(err.Error()).To(ContainSubstring("Bucket might not exist")) + g.Expect(err.Error()).To(ContainSubstring("Bucket name may be incorrect, it does not exist")) g.Expect(ok).To(BeFalse()) }