Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style(browser_tests): wrap long assertion lines

Steven Enamakelc05f4fc89bf4
diff --git a/crates/openhuman-core/src/modules/browser_tests.rs b/crates/openhuman-core/src/modules/browser_tests.rs
index 9531a800cf..a4dfba25f2 100644
--- a/crates/openhuman-core/src/modules/browser_tests.rs
+++ b/crates/openhuman-core/src/modules/browser_tests.rs
@@ -286,10 +286,19 @@ fn a_returned_page_off_https_is_refused_naming_its_scheme() {
] {
let error = client.check_returned_url(url).expect_err(url);
let text = error.to_string();
- assert!(matches!(error, BrowserCallError::Policy(_)), "{url}: {text}");
- assert!(text.contains("only HTTPS URLs are allowed"), "{url}: {text}");
+ assert!(
+ matches!(error, BrowserCallError::Policy(_)),
+ "{url}: {text}"
+ );
+ assert!(
+ text.contains("only HTTPS URLs are allowed"),
+ "{url}: {text}"
+ );
assert!(text.contains(scheme), "{url}: {text}");
- assert!(!text.contains("secret") && !text.contains("token"), "{url}: {text}");
+ assert!(
+ !text.contains("secret") && !text.contains("token"),
+ "{url}: {text}"
+ );
}
}