Update direct report_file/help_request test callers for the cooldown-key argument
All checks were successful
CI / check (push) Successful in 4m32s

This commit is contained in:
Jean Chevronnet 2026-07-19 13:57:03 +00:00
parent c2db3bad7e
commit fef4590f48
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -781,9 +781,9 @@
db.set_email("carol", Some("c@x.io".into())).unwrap();
db.news_add(NewsKind::Logon, "welcome all", "oper");
db.news_add(NewsKind::Oper, "staff notice", "oper");
let rid = db.report_file("carol", "bob", "spam").unwrap();
let rid = db.report_file("carol", "carol.host", "bob", "spam").unwrap();
db.report_close(rid);
let hid = db.help_request("carol", "help me").unwrap();
let hid = db.help_request("carol", "carol.host", "help me").unwrap();
db.help_take(hid, "bob");
db.oper_grant("carol", vec!["admin".into()], None);
db.session_except_add("*@trusted.host", 10, "trusted");

View file

@ -5601,7 +5601,7 @@ fn bench_engine_throughput() {
// enough that ordinary lines never trip it, so we time the per-message CHECK
// cost (the realistic case), not the kick path.
let (mut e, _p) = kicker_fixture("bench_hot");
let mut bs = |e: &mut Engine, t: &str| {
let bs = |e: &mut Engine, t: &str| {
e.handle(NetEvent::Privmsg { from: "000AAAAAB".into(), to: "42SAAAAAD".into(), text: t.into() });
};
bs(&mut e, "KICK #c CAPS ON");