mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
win_regedit: stabilise tests (#38912)
This commit is contained in:
@@ -562,6 +562,7 @@ $key_prefix[$path]
|
||||
} finally {
|
||||
if ($hive) {
|
||||
[GC]::Collect()
|
||||
[GC]::WaitForPendingFinalizers()
|
||||
try {
|
||||
[Ansible.RegistryUtil]::UnloadHive("ANSIBLE")
|
||||
} catch [System.ComponentModel.Win32Exception] {
|
||||
|
||||
Reference in New Issue
Block a user