Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-runtimes-caching/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
- uses: denoland/setup-deno@v2
name: Setup Deno
with:
deno-version: v2.1.4
deno-version: v2.3.2

- uses: oven-sh/setup-bun@v2
name: Setup Bun
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
builder.AddDenoTask("vite-demo", taskName: "dev")
.WithDenoPackageInstallation()
.WithHttpEndpoint(env: "PORT")
.WithEndpoint();
.WithEndpoint()
.WithHttpHealthCheck("/");

builder.AddDenoApp("oak-demo", "main.ts", permissionFlags: ["-E", "--allow-net"])
.WithHttpEndpoint(env: "PORT")
.WithEndpoint();
.WithEndpoint()
.WithHttpHealthCheck("/");

builder.Build().Run();
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
var appName = "vite-demo";
var httpClient = fixture.CreateHttpClient(appName);

await fixture.App.WaitForTextAsync("VITE", appName).WaitAsync(TimeSpan.FromSeconds(30));
await fixture.ResourceNotificationService.WaitForResourceHealthyAsync(appName).WaitAsync(TimeSpan.FromMinutes(5));

var response = await httpClient.GetAsync("/");

Expand All @@ -21,10 +21,10 @@
[Fact]
public async Task ApiResourceStartsAndRespondsOk()
{
var appName = "oak-demo";

Check failure on line 24 in tests/CommunityToolkit.Aspire.Hosting.Deno.Tests/AppHostTests.cs

View workflow job for this annotation

GitHub Actions / run-tests / Hosting.Deno.Tests-ubuntu-latest

CommunityToolkit.Aspire.Hosting.Deno.Tests.AppHostTests.ApiResourceStartsAndRespondsOk

System.TimeoutException : The operation has timed out.

Check failure on line 24 in tests/CommunityToolkit.Aspire.Hosting.Deno.Tests/AppHostTests.cs

View workflow job for this annotation

GitHub Actions / run-tests / Hosting.Deno.Tests-windows-latest

CommunityToolkit.Aspire.Hosting.Deno.Tests.AppHostTests.ApiResourceStartsAndRespondsOk

System.TimeoutException : The operation has timed out.
var httpClient = fixture.CreateHttpClient(appName);

await fixture.App.WaitForTextAsync("Server listening on port ", appName).WaitAsync(TimeSpan.FromSeconds(30));
await fixture.ResourceNotificationService.WaitForResourceHealthyAsync(appName).WaitAsync(TimeSpan.FromMinutes(5));

var response = await httpClient.GetAsync("/weather");

Expand Down
Loading