From 7492d30afc6c05b7c00981baf22a0acdccc822c4 Mon Sep 17 00:00:00 2001 From: Ion Suman <47307091+isum@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:36:46 +0200 Subject: [PATCH] graph: remove unnecessary IPFS tests --- graph/src/ipfs/server_address.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/graph/src/ipfs/server_address.rs b/graph/src/ipfs/server_address.rs index 93449897c09..46890e4e083 100644 --- a/graph/src/ipfs/server_address.rs +++ b/graph/src/ipfs/server_address.rs @@ -70,10 +70,6 @@ impl ServerAddress { }) } - pub fn local_gateway() -> Self { - Self::new("http://127.0.0.1:8080").unwrap() - } - pub fn test_rpc_api() -> Self { match std::env::var("GRAPH_NODE_TEST_IPFS_URL") { Ok(value) if !value.is_empty() => Self::new(&value).unwrap_or_else(|e| { @@ -187,18 +183,4 @@ mod tests { assert_eq!(addr.to_string(), "https://example.com/ipfs/"); } - - #[test] - fn local_gateway_server_address_is_valid() { - let addr = ServerAddress::local_gateway(); - - assert_eq!(addr.to_string(), "http://127.0.0.1:8080/"); - } - - #[test] - fn test_rpc_api_server_address_is_valid() { - let addr = ServerAddress::test_rpc_api(); - - assert_eq!(addr.to_string(), "http://127.0.0.1:5001/"); - } }