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:
parent
36f81bab1c
commit
9b5be54bdf
1 changed files with 3 additions and 0 deletions
|
|
@ -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 =====
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue