mirror of
https://github.com/astral-sh/uv.git
synced 2026-05-06 08:56:53 -04:00
Apply suggestions from code review
Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
@@ -24,7 +24,7 @@ use uv_pep440::Version;
|
||||
use uv_redacted::{DisplaySafeUrl, DisplaySafeUrlError};
|
||||
|
||||
pub static API_BASE: LazyLock<DisplaySafeUrl> = LazyLock::new(|| {
|
||||
DisplaySafeUrl::parse("https://api.osv.dev/").expect("impossible: embedded URL is invalid")
|
||||
DisplaySafeUrl::parse("https://api.osv.dev/").expect("embedded OSV URL is a valid URL")
|
||||
});
|
||||
|
||||
/// Errors during OSV service interactions.
|
||||
|
||||
@@ -16466,7 +16466,7 @@ async fn sync_malware_check_disabled() {
|
||||
");
|
||||
}
|
||||
|
||||
/// Ensure that a network error during the malware check does not fail the sync.
|
||||
/// Ensure that a network error during the malware check fails the sync.
|
||||
#[tokio::test]
|
||||
async fn sync_malware_check_network_error() {
|
||||
let context = uv_test::test_context!("3.12");
|
||||
|
||||
Reference in New Issue
Block a user