Browse Source

test: assert that disposing an access token handle closes it

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: AI Assistant <ai@example.com>
pull/118/head
Raimund Andree 3 days ago
parent
commit
cd56f495c0
  1. 2
      Tests/Privileges.Tests.ps1

2
Tests/Privileges.Tests.ps1

@ -346,6 +346,8 @@ Describe 'The PrivilegeEnabler class' {
finally {
$handle.Dispose()
}
$handle.IsClosed | Should -BeTrue
}
# The access tokens of administrators don't hold the privilege to create a token, and those of basic users don't hold

Loading…
Cancel
Save