mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-06-05 06:40:38 +00:00
chore: replace result assertions (#1840)
* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g * s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
This commit is contained in:
@@ -101,7 +101,7 @@ async fn test_whitelist_no_auth() {
|
||||
// try whitelist path
|
||||
let req = mock_http_request(None, Some("http://localhost/health")).unwrap();
|
||||
let req = http_auth.authorize(req).await;
|
||||
assert!(req.is_ok());
|
||||
let _ = req.unwrap();
|
||||
}
|
||||
|
||||
// copy from http::authorize
|
||||
|
||||
Reference in New Issue
Block a user