Skip to content

Commit 0b12cdb

Browse files
Microsoft Graph DevX ToolingFehintolaObafemi
Microsoft Graph DevX Tooling
authored andcommitted
Updated error message
1 parent f520759 commit 0b12cdb

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
@@ -73,7 +73,7 @@ Describe 'Connect-MgGraph In Delegated Mode' {
7373

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

0 commit comments

Comments
 (0)