Browse Source

Fix Back_Navigation race vs 0.5s history-collapse window

Assisted-by: Claude:claude-opus-4-7:Claude Code

Assisted-by: Claude:claude-opus-4-7:Claude Code
pull/3755/head
Siegfried Pammer 2 months ago
parent
commit
1cea9aeaeb
  1. 4
      ILSpy.Tests/MainWindow/MainWindowTests.cs

4
ILSpy.Tests/MainWindow/MainWindowTests.cs

@ -93,6 +93,10 @@ public class MainWindowTests @@ -93,6 +93,10 @@ public class MainWindowTests
var firstTab = await vm.DockWorkspace.WaitForDecompiledTextAsync();
firstTab.Text.Should().Contain("AsEnumerable");
// NavigationHistory collapses selections that happen within 0.5s into one entry. Wait
// past that window so the second selection records a real back-history entry.
await Task.Delay(600);
vm.AssemblyTreeModel.SelectedItem = secondMethod;
await Waiters.WaitForAsync(() => ReferenceEquals(vm.AssemblyTreeModel.SelectedItem, secondMethod));
var secondTab = await vm.DockWorkspace.WaitForDecompiledTextAsync();

Loading…
Cancel
Save