Skip to content

Commit 551a561

Browse files
Microsoft Graph DevX ToolingFehintolaObafemi
Microsoft Graph DevX Tooling
authored andcommitted
Updated error message
1 parent ae0b0ba commit 551a561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Describe 'Connect-MgGraph In Delegated Mode' {
6969

7070
Describe 'Connect-MgGraph In Environment Variable Mode' {
7171
It 'Should throw exception when supported environment variables are not specified' {
72-
{ Connect-MgGraph -EnvironmentVariable -ErrorAction Stop } | Should -Throw -ExpectedMessage "*ClientSecretCredential authentication failed*"
72+
{ Connect-MgGraph -EnvironmentVariable -ErrorAction Stop } | Should -Throw -ExpectedMessage "*EnvironmentCredential authentication unavailable*"
7373
}
7474
It 'Should attempt to use configured environment variables' {
7575
{

0 commit comments

Comments
 (0)