Skip to content

Commit cd5a7e7

Browse files
Relax isolated dependency test assumption
1 parent 3a55148 commit cd5a7e7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Authentication/Authentication/test/Microsoft.Graph.Authentication.Tests.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ public static class GraphAuthenticationAssemblyLoadContextTestHelper
117117

118118
$dependencyAssembly.GetName().Name | Should -Be 'Azure.Core'
119119
$dependencyContext.Name | Should -Be $loadContext.Name
120-
[System.Runtime.Loader.AssemblyLoadContext]::Default.Assemblies |
121-
Where-Object { $_.GetName().Name -eq 'Azure.Core' } |
122-
Should -BeNullOrEmpty
120+
[object]::ReferenceEquals($dependencyContext, [System.Runtime.Loader.AssemblyLoadContext]::Default) | Should -BeFalse
123121
}
124122
}
125123
}

0 commit comments

Comments
 (0)