Fix guideentryprototypetests (#24427)
It hits the style update limit so try running a tick and see if we can avoid having too many queued.
This commit is contained in:
@@ -23,17 +23,18 @@ public sealed class GuideEntryPrototypeTests
|
|||||||
var parser = client.ResolveDependency<DocumentParsingManager>();
|
var parser = client.ResolveDependency<DocumentParsingManager>();
|
||||||
var prototypes = protoMan.EnumeratePrototypes<GuideEntryPrototype>().ToList();
|
var prototypes = protoMan.EnumeratePrototypes<GuideEntryPrototype>().ToList();
|
||||||
|
|
||||||
await client.WaitAssertion(() =>
|
|
||||||
{
|
|
||||||
Assert.Multiple(() =>
|
|
||||||
{
|
|
||||||
foreach (var proto in prototypes)
|
foreach (var proto in prototypes)
|
||||||
{
|
{
|
||||||
var text = resMan.ContentFileReadText(proto.Text).ReadToEnd();
|
await client.WaitAssertion(() =>
|
||||||
|
{
|
||||||
|
using var reader = resMan.ContentFileReadText(proto.Text);
|
||||||
|
var text = reader.ReadToEnd();
|
||||||
Assert.That(parser.TryAddMarkup(new Document(), text), $"Failed to parse guidebook: {proto.Id}");
|
Assert.That(parser.TryAddMarkup(new Document(), text), $"Failed to parse guidebook: {proto.Id}");
|
||||||
|
});
|
||||||
|
|
||||||
|
// Avoid styleguide update limit
|
||||||
|
await client.WaitRunTicks(1);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
await pair.CleanReturnAsync();
|
await pair.CleanReturnAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user