Skip to content

Commit f52c4bf

Browse files
committed
build: adjust web integration test timeouts in code and CI workflow for Aspire startup
1 parent 4399c1a commit f52c4bf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ jobs:
5353
- name: Run web integration tests
5454
run: dotnet test --configuration Release --treenode-filter "/**[Category=Integration]"
5555
working-directory: src/Web/BookStore.Web.Tests
56+
timeout-minutes: 10
5657
# Integration tests run after unit tests pass
57-
# Slower tests that require full application stack
58+
# Slower tests that require full application stack (Aspire startup takes time)
5859

5960
code-quality:
6061
runs-on: ubuntu-latest

src/Web/BookStore.Web.Tests/WebTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace BookStore.Web.Tests;
44

55
public class WebTests
66
{
7-
static readonly TimeSpan DefaultTimeout = TimeSpan.FromSeconds(30);
7+
static readonly TimeSpan DefaultTimeout = TimeSpan.FromMinutes(2); // Aspire startup can take time in CI
88

99
[Test]
1010
[Category("Integration")]

0 commit comments

Comments
 (0)