diff --git a/CHANGELOG.md b/CHANGELOG.md index 9930debe9..8c4e6916f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ - **Remove-IntegrationLoopbackAdapter:** Removes a new network loopback adapter. - **Get-NetIPAddressNetwork:** Returns the IP network address from an IPv4 address and prefix length. + - Sometimes the integration tests failed to start services in the AppVeyor + build worker. Now the value 'ServicesPipeTimeout' is set to the max of two + minutes (default 30 seconds) in appveyor.yml ([issue #1114](https://github.com/PowerShell/SqlServerDsc/issues/1114)). - Changes to Unit Tests - [Michael Fyffe (@TraGicCode)](https://github.com/TraGicCode): Updated the following resources unit test template to version 1.2.1 diff --git a/appveyor.yml b/appveyor.yml index d890750f8..c5cc6f65d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,6 +5,16 @@ version: 9.0.{build}.0 image: Visual Studio 2017 install: - git clone https://github.com/PowerShell/DscResource.Tests + - ps: | + Write-Verbose -Message 'Updating services start timeout to 1200000 milliseconds (2 minutes).' -Verbose + New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control' -Name 'ServicesPipeTimeout' -Value '120000' -PropertyType DWORD -Force + Write-Verbose -Message 'Restarting build worker.' -Verbose + - ps: Start-Sleep 5 + - ps: Restart-Computer -Force + - ps: Start-Sleep 5 + - ps: | + $servicesPipeTimeout = (Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control' -Name 'ServicesPipeTimeout').ServicesPipeTimeout + Write-Verbose -Message "Services start timeout is '$servicesPipeTimeout' milliseconds." -Verbose - ps: Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose - ps: Import-Module "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1" - ps: Invoke-AppveyorInstallTask