From aa4f638206b9b79de267f9a1daab7ec6698b241d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 6 Mar 2026 14:21:30 +0200 Subject: Fix real live flamegraph key handling and startup viewport sync --- internal/tui/dashboard/model_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/tui/dashboard/model_test.go') diff --git a/internal/tui/dashboard/model_test.go b/internal/tui/dashboard/model_test.go index 8904a2f..d5b78e0 100644 --- a/internal/tui/dashboard/model_test.go +++ b/internal/tui/dashboard/model_test.go @@ -215,7 +215,7 @@ func TestSetLiveTriePreloadsInitialSnapshotWithoutVersionChange(t *testing.T) { } } -func TestFlameTickPausedContinuesBootstrapRefresh(t *testing.T) { +func TestFlameTickPausedFreezesAfterInitialSnapshot(t *testing.T) { liveTrie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count") m := NewModelWithConfig(nil, nil, 250, common.DefaultKeyMap()) m.SetLiveTrie(liveTrie) @@ -235,8 +235,8 @@ func TestFlameTickPausedContinuesBootstrapRefresh(t *testing.T) { next, _ = model.Update(flameTickMsg{}) model = next.(Model) - if got, want := model.flamegraphModel.LastVersion(), liveTrie.Version(); got != want { - t.Fatalf("expected paused flame tick bootstrap to refresh version, got %d want %d", got, want) + if got, want := model.flamegraphModel.LastVersion(), initialVersion; got != want { + t.Fatalf("expected paused flame tick to freeze version at %d, got %d", want, got) } } -- cgit v1.2.3