diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-06 14:21:30 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-06 14:21:30 +0200 |
| commit | aa4f638206b9b79de267f9a1daab7ec6698b241d (patch) | |
| tree | 44c913b6be46460c184eac580d26a11973a6e283 /internal/tui/dashboard | |
| parent | ef12ce837176bd21deb455eb50a6c839af02b510 (diff) | |
Fix real live flamegraph key handling and startup viewport sync
Diffstat (limited to 'internal/tui/dashboard')
| -rw-r--r-- | internal/tui/dashboard/model_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) } } |
