From 83316d4c8d67944194d1cbb685498b1f14e0cec4 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Sat, 7 Nov 2026 13:11:22 +0100 Subject: [PATCH] Test: il registro degli impieghi senza officina riporta le righe ricevute 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 --- tests/RailEnterprise.Tests/Server/ServerTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/RailEnterprise.Tests/Server/ServerTests.cs b/tests/RailEnterprise.Tests/Server/ServerTests.cs index 9f1882c..75e53b9 100644 --- a/tests/RailEnterprise.Tests/Server/ServerTests.cs +++ b/tests/RailEnterprise.Tests/Server/ServerTests.cs @@ -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