Apply clippy to the tests, too

This commit is contained in:
Nora Widdecke 2022-02-28 17:52:51 +01:00 committed by Vincent Breitmoser
parent ed924f439b
commit 59c42c033d
3 changed files with 5 additions and 5 deletions

View File

@ -8,6 +8,6 @@ build, test and lint:
- rustup component add rustfmt
- ./make-translated-templates
- cargo build
- cargo clippy --no-deps
- cargo clippy --tests --no-deps
- cargo fmt --all -- --check
- cargo test --all

View File

@ -67,7 +67,7 @@ mod tests {
assert!(rate_limiter.action_perform("action".to_owned()));
assert_eq!(false, rate_limiter.action_perform("action".to_owned()));
assert!(!rate_limiter.action_perform("action".to_owned()));
}
#[test]

View File

@ -1103,7 +1103,7 @@ pub mod tests {
let (wkd_hash, domain) = crate::database::wkd::encode_wkd(addr).unwrap();
check_null_response(
&client,
client,
&format!("/.well-known/openpgpkey/{}/hu/{}", domain, wkd_hash),
);
}
@ -1137,9 +1137,9 @@ pub mod tests {
let (wkd_hash, domain) = crate::database::wkd::encode_wkd(addr).unwrap();
check_wkd_response(
&client,
client,
&format!("/.well-known/openpgpkey/{}/hu/{}", domain, wkd_hash),
&tpk,
tpk,
nr_uids,
);
}