mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
chore: format auth rate limit tests for rustfmt 1.95
This commit is contained in:
@@ -2376,22 +2376,8 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn rate_limit_policy_uses_highest_group_limit_before_user_restriction() {
|
fn rate_limit_policy_uses_highest_group_limit_before_user_restriction() {
|
||||||
let groups = vec![
|
let groups = vec![
|
||||||
sample_group(
|
sample_group("default", 10, None, "unrestricted", Some(30), "custom"),
|
||||||
"default",
|
sample_group("tier-1", 20, None, "unrestricted", Some(100), "custom"),
|
||||||
10,
|
|
||||||
None,
|
|
||||||
"unrestricted",
|
|
||||||
Some(30),
|
|
||||||
"custom",
|
|
||||||
),
|
|
||||||
sample_group(
|
|
||||||
"tier-1",
|
|
||||||
20,
|
|
||||||
None,
|
|
||||||
"unrestricted",
|
|
||||||
Some(100),
|
|
||||||
"custom",
|
|
||||||
),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
@@ -2403,22 +2389,8 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn rate_limit_unlimited_group_overrides_limited_groups() {
|
fn rate_limit_unlimited_group_overrides_limited_groups() {
|
||||||
let groups = vec![
|
let groups = vec![
|
||||||
sample_group(
|
sample_group("default", 10, None, "unrestricted", Some(30), "custom"),
|
||||||
"default",
|
sample_group("tier-2", 20, None, "unrestricted", Some(0), "custom"),
|
||||||
10,
|
|
||||||
None,
|
|
||||||
"unrestricted",
|
|
||||||
Some(30),
|
|
||||||
"custom",
|
|
||||||
),
|
|
||||||
sample_group(
|
|
||||||
"tier-2",
|
|
||||||
20,
|
|
||||||
None,
|
|
||||||
"unrestricted",
|
|
||||||
Some(0),
|
|
||||||
"custom",
|
|
||||||
),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
Reference in New Issue
Block a user