diff --git a/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp b/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp index 9059189c0..6c3fc0c83 100644 --- a/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp +++ b/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp @@ -712,7 +712,10 @@ TEST(AzurePipelinesCredential, InvalidClientId_LIVEONLY_) catch (AuthenticationException const& ex) { EXPECT_TRUE(std::string(ex.what()).find("400 Bad Request") != std::string::npos) << ex.what(); - EXPECT_TRUE(std::string(ex.what()).find("AADSTS700016") != std::string::npos) << ex.what(); + EXPECT_TRUE( + std::string(ex.what()).find("AADSTS700016") != std::string::npos + || std::string(ex.what()).find("AADSTS53003") != std::string::npos) + << ex.what(); } }