Skip to content

Commit 767cd5e

Browse files
committed
Remove comment
1 parent b663a05 commit 767cd5e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

reboot_pending/tests/reboot_pending.tests.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Describe 'reboot_pending resource tests' {
1818
It 'reboot_pending should have a reason' -Skip:(!$IsWindows) {
1919
BeforeAll {
2020
# Ensure the system is in a state that requires a reboot
21-
# This is just an example, actual implementation may vary
2221
if (-not (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -ErrorAction SilentlyContinue)) {
2322
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" -Name "RebootRequired" -Value 1 -PropertyType DWord -Force | Out-Null
2423
}
@@ -29,7 +28,6 @@ Describe 'reboot_pending resource tests' {
2928
$out.actualState.reason | Should -Not -BeNullOrEmpty
3029

3130
AfterAll {
32-
# Clean up the registry key to avoid affecting other tests
3331
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" -Name "RebootRequired" -ErrorAction SilentlyContinue
3432
}
3533
}

0 commit comments

Comments
 (0)