Skip to content

Commit 5f83f0f

Browse files
committed
* Update toxiproxy executables.
* Collect toxiproxy server output on failure.
1 parent cea96db commit 5f83f0f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
401 KB
Binary file not shown.
-838 KB
Binary file not shown.

.github/workflows/build-test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ jobs:
6969
- name: Integration Tests
7070
timeout-minutes: 25
7171
run: |
72-
$tx = Start-Job -Verbose -ScriptBlock { & "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-server.exe" }; `
73-
Start-Sleep -Seconds 1; `
74-
Receive-Job -Job $tx; `
75-
& "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-cli.exe" list; `
72+
Start-Job -Verbose -ScriptBlock { & "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-server.exe" }; `
7673
dotnet test `
7774
--environment 'RABBITMQ_LONG_RUNNING_TESTS=true' `
7875
--environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" `
@@ -82,7 +79,10 @@ jobs:
8279
"${{ github.workspace }}\projects\Test\Integration\Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
8380
- name: Check for errors in RabbitMQ logs
8481
run: ${{ github.workspace }}\.ci\windows\gha-log-check.ps1
85-
- name: Maybe upload RabbitMQ logs
82+
- name: Maybe collect Toxiproxy logs
83+
if: failure()
84+
run: Get-Job | Where-Object { $_.HasMoreData } | Receive-Job | Out-File -Append -LiteralPath $env:APPDATA\RabbitMQ\log\toxiproxy-log.txt
85+
- name: Maybe upload RabbitMQ and Toxiproxy logs
8686
if: failure()
8787
uses: actions/upload-artifact@v4
8888
with:

0 commit comments

Comments
 (0)