File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ Describe 'reboot_pending resource tests' {
18
18
It ' reboot_pending should have a reason' - Skip:(! $IsWindows ) {
19
19
BeforeAll {
20
20
# Ensure the system is in a state that requires a reboot
21
- # This is just an example, actual implementation may vary
22
21
if (-not (Get-ItemProperty " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" - ErrorAction SilentlyContinue)) {
23
22
New-ItemProperty - Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" - Name " RebootRequired" - Value 1 - PropertyType DWord - Force | Out-Null
24
23
}
@@ -29,7 +28,6 @@ Describe 'reboot_pending resource tests' {
29
28
$out.actualState.reason | Should -Not - BeNullOrEmpty
30
29
31
30
AfterAll {
32
- # Clean up the registry key to avoid affecting other tests
33
31
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" - Name " RebootRequired" - ErrorAction SilentlyContinue
34
32
}
35
33
}
You can’t perform that action at this time.
0 commit comments