Test: il registro degli impieghi senza officina riporta le righe ricevute
CI / Build e test (pull_request) Successful in 1m22s
CI / Immagine Docker (pull_request) Successful in 29s

MaintenanceDetailsOnRequest fallisce a volte sul runner (#24) e passa in locale:
il messaggio ora dice quali righe sono arrivate e di che giorno, per capire la
causa al prossimo fallimento.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-07 13:11:22 +01:00
1 parent 8bef6551e4
commit 83316d4c8d
1 file changed
+3 -1
@@ -247,7 +247,9 @@ public static class ServerTests
await client.Connection.SendAsync(new RequestDetail { Kind = DetailKind.Employment, Target = 0 });
var report = await client.WaitFor(() => w.Employment, "registro degli impieghi");
var row = report.Rows.FirstOrDefault(r => r.Kind == 1 && r.Industry == depot);
Assert.True(row is not null, "l'officina compare nel registro");
// test intermittente sul runner (#24): il messaggio riporta cosa è arrivato davvero
Assert.True(row is not null, $"l'officina {depot} compare nel registro del giorno {report.Day}; righe: "
+ string.Join(", ", report.Rows.Select(r => $"{r.Kind}:{r.Industry}")));
Assert.Equal(16, row!.JobsStaff);
// dettagli di entità altrui o inesistenti: nessuna risposta, nessun errore