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