test(cmd/bd): pin comments_omitted on the embedded wisp count-only view

show_json_wisp_comment_count asserted comment_count and the absent
comments slice but never read comments_omitted, the flag the GH#5565
fix unlocks. A regression that stops setting it stayed green here.

AC: AC-1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian Knutsen 2026-10-19 06:57:26 +00:00
commit 9b5be54bdf

View file

@ -282,6 +282,9 @@ func TestEmbeddedShowBasicsAndJSON(t *testing.T) {
if _, ok := m["comments"]; ok {
t.Errorf("comments slice should be absent by default")
}
if omitted, _ := m["comments_omitted"].(bool); !omitted {
t.Errorf("comments_omitted: got %v, want true beside a nonzero comment_count and no rows", m["comments_omitted"])
}
})
// ===== --short =====