Update direct report_file/help_request test callers for the cooldown-key argument
All checks were successful
CI / check (push) Successful in 4m32s
All checks were successful
CI / check (push) Successful in 4m32s
This commit is contained in:
parent
c2db3bad7e
commit
fef4590f48
2 changed files with 3 additions and 3 deletions
|
|
@ -781,9 +781,9 @@
|
||||||
db.set_email("carol", Some("c@x.io".into())).unwrap();
|
db.set_email("carol", Some("c@x.io".into())).unwrap();
|
||||||
db.news_add(NewsKind::Logon, "welcome all", "oper");
|
db.news_add(NewsKind::Logon, "welcome all", "oper");
|
||||||
db.news_add(NewsKind::Oper, "staff notice", "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);
|
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.help_take(hid, "bob");
|
||||||
db.oper_grant("carol", vec!["admin".into()], None);
|
db.oper_grant("carol", vec!["admin".into()], None);
|
||||||
db.session_except_add("*@trusted.host", 10, "trusted");
|
db.session_except_add("*@trusted.host", 10, "trusted");
|
||||||
|
|
|
||||||
|
|
@ -5601,7 +5601,7 @@ fn bench_engine_throughput() {
|
||||||
// enough that ordinary lines never trip it, so we time the per-message CHECK
|
// enough that ordinary lines never trip it, so we time the per-message CHECK
|
||||||
// cost (the realistic case), not the kick path.
|
// cost (the realistic case), not the kick path.
|
||||||
let (mut e, _p) = kicker_fixture("bench_hot");
|
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() });
|
e.handle(NetEvent::Privmsg { from: "000AAAAAB".into(), to: "42SAAAAAD".into(), text: t.into() });
|
||||||
};
|
};
|
||||||
bs(&mut e, "KICK #c CAPS ON");
|
bs(&mut e, "KICK #c CAPS ON");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue