test(proxy-nodes): 将离线隧道用例的连通性探测指向 Cloudflare 以避免环境抖动

This commit is contained in:
fawney19
2026-04-19 04:03:37 +08:00
parent 0329b7b784
commit e6fd95453d

View File

@@ -915,6 +915,10 @@ async fn gateway_creates_updates_and_tests_manual_proxy_nodes_locally() {
#[tokio::test]
async fn gateway_tests_disconnected_tunnel_proxy_nodes_locally() {
let _probe_url_guard = crate::handlers::admin::override_proxy_connectivity_probe_url_for_tests(
"https://www.cloudflare.com/cdn-cgi/trace",
);
let proxy_node_repository =
Arc::new(InMemoryProxyNodeRepository::seed(vec![sample_proxy_node(
"node-offline",