#3692: review — comment-id test checks the ids, not a wall-clock deadline

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CX1hMKX28764Lrx5moxs1o
This commit is contained in:
Martin BallandClaude Opus 5.5 authored and Dylan M. Taylor committed 2026-10-25 21:02:52 -04:00
1 parent c14e18cfa8
commit 5819b1ca62
1 file changed
-3
-3
View File
@@ -372,11 +372,8 @@ fn comments_with_non_numeric_ids_open_in_linear_time() {
("word/_rels/document.xml.rels", rels.as_bytes()),
("word/comments.xml", comments.as_bytes()),
]);
let t = std::time::Instant::now();
let d = read(&z).unwrap();
let took = t.elapsed();
assert_eq!(d.comments.len(), n);
let ids: std::collections::HashSet<_> = d.comments.keys().collect();
assert_eq!(ids.len(), n, "every comment has its own id");
assert!(took.as_secs_f32() < 2.0, "opening took {took:?}");
}