mirror of
https://github.com/openai/codex.git
synced 2026-11-07 20:30:33 +00:00
Fix system proxy cache key lint
This commit is contained in:
@@ -731,11 +731,14 @@ mod tests {
|
||||
#[test]
|
||||
fn system_proxy_cache_key_preserves_url_specific_pac_decisions() {
|
||||
let request_url = "https://auth.openai.com/oauth/token?access_token=secret";
|
||||
let cache_key = system_proxy_cache_key(request_url, false);
|
||||
let cache_key = system_proxy_cache_key(request_url, /*include_auto_detect*/ false);
|
||||
|
||||
assert_ne!(
|
||||
cache_key,
|
||||
system_proxy_cache_key("https://auth.openai.com/oauth/revoke", false)
|
||||
system_proxy_cache_key(
|
||||
"https://auth.openai.com/oauth/revoke",
|
||||
/*include_auto_detect*/ false,
|
||||
)
|
||||
);
|
||||
#[cfg(target_os = "windows")]
|
||||
assert!(!cache_key.contains(request_url));
|
||||
|
||||
Reference in New Issue
Block a user