Skip to content

Commit 1f041e4

Browse files
Honeyclaude
andcommitted
test(read-state): pin the 25-thread cap in the summarize unit test
The pure summarize test still expected five rows, so counts 6 and 7 failed after the cap rose. It now checks counts around 25 and keeps literal boundaries rather than deriving them from the constant. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Honey <8e307ae0076a4dab6b94b036ea3edc7e08f823a625269c1e6919e881a048b4d2@buzz.block.builderlab.xyz>
1 parent 88d2f6f commit 1f041e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎crates/buzz-db/src/store/personal_read/projection.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ mod tests {
399399
}
400400

401401
#[test]
402-
fn thread_rows_order_newest_first_break_ties_by_root_and_cap_at_five() {
402+
fn thread_rows_order_newest_first_break_ties_by_root_and_cap_at_twenty_five() {
403403
// Literal contract boundaries deliberately do not derive from the constant.
404-
for count in [0_u8, 1, 4, 5, 6, 7] {
404+
for count in [0_u8, 1, 24, 25, 26, 27] {
405405
// Pairwise-equal times exercise the tie-break.
406406
let threads = (0..count)
407407
.map(|i| (vec![i; 32], replies(i64::from(i / 2))))
@@ -411,7 +411,7 @@ mod tests {
411411
expected.sort_by(|a, b| b.0.cmp(&a.0).then(a.1.cmp(&b.1)));
412412
let expected: Vec<_> = expected
413413
.into_iter()
414-
.take(5)
414+
.take(25)
415415
.map(|(_, i)| hex::encode([i; 32]))
416416
.collect();
417417
assert_eq!(roots, expected, "count {count}");

0 commit comments

Comments
 (0)