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