From 1943183ddfb8e5adc616aa3c2d756a1385d8347a Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Tue, 29 Sep 2026 06:55:57 +0200 Subject: [PATCH] Stabilize search list settle test The burst-count assertion must exclude the initial query search. Waiting for the initial run to start and finish makes the test independent of CI dispatcher timing instead of relying on a fixed delay. Assisted-by: OpenCode:openai/gpt-5.5:OpenCode --- ILSpy.Tests/Search/SearchListSettleTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ILSpy.Tests/Search/SearchListSettleTests.cs b/ILSpy.Tests/Search/SearchListSettleTests.cs index a72e28877..2dc0a50c8 100644 --- a/ILSpy.Tests/Search/SearchListSettleTests.cs +++ b/ILSpy.Tests/Search/SearchListSettleTests.cs @@ -55,8 +55,9 @@ public class SearchListSettleTests started++; }; search.SearchTerm = "Object"; - await PumpAsync(TimeSpan.FromMilliseconds(400)); // let the typing debounce elapse - started = 0; // count only what the burst causes + await Waiters.WaitForAsync(() => started > 0); + await Waiters.WaitForAsync(() => !search.IsSearching); + started = 0; // Count only what the assembly-list change causes. return (search, vm.AssemblyTreeModel.AssemblyList!, () => started); }