From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 23 Jan 2024 00:30:09 +0000 (+1100) Subject: Fix guideentryprototypetests (#24427) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=54a6151a64578d80078b3213c394d889f41f3752;p=space-station-14.git Fix guideentryprototypetests (#24427) It hits the style update limit so try running a tick and see if we can avoid having too many queued. --- diff --git a/Content.IntegrationTests/Tests/Guidebook/GuideEntryPrototypeTests.cs b/Content.IntegrationTests/Tests/Guidebook/GuideEntryPrototypeTests.cs index 7d686dffe6..b56191525f 100644 --- a/Content.IntegrationTests/Tests/Guidebook/GuideEntryPrototypeTests.cs +++ b/Content.IntegrationTests/Tests/Guidebook/GuideEntryPrototypeTests.cs @@ -23,17 +23,18 @@ public sealed class GuideEntryPrototypeTests var parser = client.ResolveDependency(); var prototypes = protoMan.EnumeratePrototypes().ToList(); - await client.WaitAssertion(() => + foreach (var proto in prototypes) { - Assert.Multiple(() => + await client.WaitAssertion(() => { - foreach (var proto in prototypes) - { - var text = resMan.ContentFileReadText(proto.Text).ReadToEnd(); - Assert.That(parser.TryAddMarkup(new Document(), text), $"Failed to parse guidebook: {proto.Id}"); - } + using var reader = resMan.ContentFileReadText(proto.Text); + var text = reader.ReadToEnd(); + Assert.That(parser.TryAddMarkup(new Document(), text), $"Failed to parse guidebook: {proto.Id}"); }); - }); + + // Avoid styleguide update limit + await client.WaitRunTicks(1); + } await pair.CleanReturnAsync(); }