mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-06 10:38:54 +00:00
win_regedit: stabilise tests (#38912)
This commit is contained in:
parent
26312b6557
commit
77ef4802f0
3 changed files with 4 additions and 8 deletions
|
|
@ -562,6 +562,7 @@ $key_prefix[$path]
|
|||
} finally {
|
||||
if ($hive) {
|
||||
[GC]::Collect()
|
||||
[GC]::WaitForPendingFinalizers()
|
||||
try {
|
||||
[Ansible.RegistryUtil]::UnloadHive("ANSIBLE")
|
||||
} catch [System.ComponentModel.Win32Exception] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue