Browse Source

Use the default wait budget for frozen-tab re-decompile waits

The explicit 15-second budget timed out on a loaded Windows Release CI
runner (a different test of this fixture on each attempt, while the
sibling workflow run passed the same head). The waits are
completion-bounded - the predicate observes the end of an async
re-decompile - so the 60-second Waiters default costs nothing when
healthy and only converts runner slowness from a red run into a longer
green one.

Assisted-by: Claude:claude-fable-5:Claude Code
pull/3927/head
Siegfried Pammer 2 months ago committed by Siegfried Pammer
parent
commit
89800af156
  1. 6
      ILSpy.Tests/Docking/FrozenTabRefreshTests.cs

6
ILSpy.Tests/Docking/FrozenTabRefreshTests.cs

@ -89,8 +89,7 @@ public class FrozenTabRefreshTests
await Waiters.WaitForAsync( await Waiters.WaitForAsync(
() => !frozen.IsDecompiling && !preview.IsDecompiling () => !frozen.IsDecompiling && !preview.IsDecompiling
&& frozen.Text != frozenCSharp && preview.Text != previewCSharp, && frozen.Text != frozenCSharp && preview.Text != previewCSharp,
TimeSpan.FromSeconds(15), description: "both the frozen tab and the preview tab to re-decompile after the language change");
"both the frozen tab and the preview tab to re-decompile after the language change");
frozen.Language.Name.Should().Be("IL", frozen.Language.Name.Should().Be("IL",
"the frozen tab must adopt the newly selected language"); "the frozen tab must adopt the newly selected language");
@ -115,8 +114,7 @@ public class FrozenTabRefreshTests
await Waiters.WaitForAsync( await Waiters.WaitForAsync(
() => !frozen.IsDecompiling && !preview.IsDecompiling () => !frozen.IsDecompiling && !preview.IsDecompiling
&& frozen.Text != frozenBefore && preview.Text != previewBefore, && frozen.Text != frozenBefore && preview.Text != previewBefore,
TimeSpan.FromSeconds(15), description: "both the frozen tab and the preview tab to re-decompile after the display-setting change");
"both the frozen tab and the preview tab to re-decompile after the display-setting change");
frozen.Text.Should().NotBe(frozenBefore, frozen.Text.Should().NotBe(frozenBefore,
"the frozen tab must re-render with the new indentation setting"); "the frozen tab must re-render with the new indentation setting");

Loading…
Cancel
Save