Fase 13 — Campionato: unità di lavoro, piano e statistica #188

Merged
Alby96 merged 6 commits from fase-13 into main 2026-12-04 15:53:44 +01:00
Showing only changes of commit 7b162aa4bc - Show all commits
+4 -1
View File
@@ -1,3 +1,4 @@
using System.Diagnostics;
using System.Net;
using System.Net.Http.Json;
using Anubis.Server;
@@ -37,10 +38,12 @@ public sealed class HealthEndpointTests
return (await response.Content.ReadFromJsonAsync<HealthResponse>())!;
}
// Up to 30 seconds of wall time: on a busy test runner the engine can take more than ten to start.
async Task UntilAsync(string status, string loop)
{
HealthResponse? last = null;
for (var i = 0; i < 100; i++)
var deadline = Stopwatch.StartNew();
while (last is null || deadline.Elapsed < TimeSpan.FromSeconds(30))
{
last = await HealthAsync();
if (last.Status == status && last.Checks!.GetValueOrDefault("motore") == loop)