Run go-httpbin locally for MSW CI jobs on GitHub too Do it for the same reason as we do it on appveyor: the main/default endpoint is unreliable and may not accept connections, results in spurious test failures.
| ... | ... | @@ -120,6 +120,21 @@ jobs: |
| 120 | 120 | if: ${{ !contains(matrix.platform, 'arm64') }}
|
| 121 | 121 | working-directory: tests
|
| 122 | 122 | run: |
|
| 123 | + go install github.com/mccutchen/go-httpbin/v2/cmd/go-httpbin@v2
|
|
| 124 | + $gopath = $(go env GOPATH)
|
|
| 125 | + $env:PATH += ";$gopath\bin"
|
|
| 126 | + Start-Job -Name wx_httpbin { go-httpbin -host 127.0.0.1 -port 8081 2>&1 > httpbin.log }
|
|
| 127 | + Start-Sleep -Seconds 5
|
|
| 128 | + curl.exe --silent --show-error http://127.0.0.1:8081/ip > $null
|
|
| 129 | + if ($lastExitCode -eq "0") {
|
|
| 130 | + $env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:8081"
|
|
| 131 | + }
|
|
| 132 | + else {
|
|
| 133 | + Write-Error "Disabling wxWebRequest tests as launching httpbin failed, log follows:"
|
|
| 134 | + Get-Content httpbin.log
|
|
| 135 | + $env:WX_TEST_WEBREQUEST_URL="0"
|
|
| 136 | + }
|
|
| 137 | + |
|
| 123 | 138 | .\vc*msw*\test.exe
|
| 124 | 139 | |
| 125 | 140 | - name: Build GUI tests
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help