Skip to content

Commit 567aa95

Browse files
committed
graph: remove unnecessary IPFS tests
1 parent 7105c15 commit 567aa95

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

graph/src/ipfs/server_address.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ impl ServerAddress {
7070
})
7171
}
7272

73-
pub fn local_gateway() -> Self {
74-
Self::new("http://127.0.0.1:8080").unwrap()
75-
}
76-
7773
pub fn test_rpc_api() -> Self {
7874
match std::env::var("GRAPH_NODE_TEST_IPFS_URL") {
7975
Ok(value) if !value.is_empty() => Self::new(&value).unwrap_or_else(|e| {
@@ -187,18 +183,4 @@ mod tests {
187183

188184
assert_eq!(addr.to_string(), "https://example.com/ipfs/");
189185
}
190-
191-
#[test]
192-
fn local_gateway_server_address_is_valid() {
193-
let addr = ServerAddress::local_gateway();
194-
195-
assert_eq!(addr.to_string(), "http://127.0.0.1:8080/");
196-
}
197-
198-
#[test]
199-
fn test_rpc_api_server_address_is_valid() {
200-
let addr = ServerAddress::test_rpc_api();
201-
202-
assert_eq!(addr.to_string(), "http://127.0.0.1:5001/");
203-
}
204186
}

0 commit comments

Comments
 (0)