Apply clippy to the tests, too
This commit is contained in:
parent
ed924f439b
commit
59c42c033d
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue