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/"); - } }