Skip to content

Commit 8a3fc58

Browse files
authored
Merge pull request #1451 from rabbitmq/rabbitmq-dotnet-client-1157
Enable long running tests
2 parents fb94c1d + 730cb8c commit 8a3fc58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ jobs:
6868
id: install-start-rabbitmq
6969
run: .\.ci\windows\gha-setup.ps1
7070
- name: Async Integration Tests
71-
run: dotnet test --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" --environment 'RABBITMQ_LONG_RUNNING_TESTS=false' "${{ github.workspace }}\projects\Test\AsyncIntegration\AsyncIntegration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
71+
run: dotnet test --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' "${{ github.workspace }}\projects\Test\AsyncIntegration\AsyncIntegration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
7272
- name: Integration Tests
73-
run: dotnet test --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" --environment 'RABBITMQ_LONG_RUNNING_TESTS=false' --environment 'PASSWORD=grapefruit' --environment SSL_CERTS_DIR="${{ github.workspace }}\.ci\certs" "${{ github.workspace }}\projects\Test\Integration\Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
73+
run: dotnet test --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' --environment 'PASSWORD=grapefruit' --environment SSL_CERTS_DIR="${{ github.workspace }}\.ci\certs" "${{ github.workspace }}\projects\Test\Integration\Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
7474
- name: Maybe upload RabbitMQ logs
7575
if: failure()
7676
uses: actions/upload-artifact@v3
@@ -179,7 +179,7 @@ jobs:
179179
run: |
180180
dotnet test \
181181
--environment "RABBITMQ_RABBITMQCTL_PATH=DOCKER:${{ steps.start-rabbitmq.outputs.id }}" \
182-
--environment 'RABBITMQ_LONG_RUNNING_TESTS=false' \
182+
--environment 'RABBITMQ_LONG_RUNNING_TESTS=true' \
183183
--environment 'PASSWORD=grapefruit' \
184184
--environment SSL_CERTS_DIR="${{ github.workspace }}/.ci/certs" \
185185
"${{ github.workspace }}/projects/Test/Integration/Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'

projects/Test/Integration/TestHeartbeats.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void TestHundredsOfConnectionsWithRandomHeartbeatInterval()
114114
cf.RequestedHeartbeat = TimeSpan.FromSeconds(n);
115115
cf.AutomaticRecoveryEnabled = false;
116116

117-
IConnection conn = cf.CreateConnection($"_testDisplayName:{i}");
117+
IConnection conn = cf.CreateConnection($"{_testDisplayName}:{i}");
118118
conns.Add(conn);
119119
IChannel ch = conn.CreateChannel();
120120
conn.ConnectionShutdown += (sender, evt) =>

0 commit comments

Comments
 (0)