Skip to content

Commit

Permalink
Changes to SqlServerDsc
Browse files Browse the repository at this point in the history
- 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 dsccommunity#1114).
  • Loading branch information
johlju committed Apr 21, 2018
1 parent 920846e commit 71a354d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71a354d

Please sign in to comment.