diff --git a/provider/azure/internal/errorutils/errors_test.go b/provider/azure/internal/errorutils/errors_test.go index f7bd4a8c1a2..16428008de9 100644 --- a/provider/azure/internal/errorutils/errors_test.go +++ b/provider/azure/internal/errorutils/errors_test.go @@ -66,7 +66,7 @@ func (s *ErrorSuite) TestAuthRelatedStatusCodes(c *gc.C) { ctx := context.NewEmptyCloudCallContext() called := false ctx.InvalidateCredentialFunc = func(msg string) error { - c.Assert(msg, gc.Matches, "azure cloud denied access: .*") + c.Assert(msg, gc.Matches, "(?m)azure cloud denied access: .*") called = true return nil }