shaping: validate the default shaping.toml file

We used to do this as part of a more structured test, but decoupled
that from the test case outcome in 899178351a.

This commit explicitly loads the default file to make sure that it
is valid.
This commit is contained in:
Wez Furlong
2024-09-03 16:24:47 -07:00
parent 899178351a
commit b4e02fcc78
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -90,8 +90,7 @@ duration = "30 days"
match=[
{MXSuffix=".google.com"},
{MXSuffix=".googlemail.com"}
]
]
max_deliveries_per_connection = 50
provider_connection_limit = 5
consecutive_connection_failures_before_delay = 5
+7
View File
@@ -1917,4 +1917,11 @@ MergedEntry {
"#
);
}
#[tokio::test]
async fn test_load_default_shaping_toml() {
Shaping::merge_files(&["../../assets/policy-extras/shaping.toml".into()])
.await
.unwrap();
}
}