From 54a6151a64578d80078b3213c394d889f41f3752 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:30:09 +1100 Subject: [PATCH] Fix guideentryprototypetests (#24427) It hits the style update limit so try running a tick and see if we can avoid having too many queued. --- .../Tests/Guidebook/GuideEntryPrototypeTests.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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(); } -- 2.51.2