Format
This commit is contained in:
parent
5ca12bdf15
commit
d85aaafad0
1 changed files with 1 additions and 2 deletions
|
|
@ -379,8 +379,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ipfs_uri_tries_riften_gateway_first() {
|
fn ipfs_uri_tries_riften_gateway_first() {
|
||||||
let candidates =
|
let candidates = resolve_uri_candidates("ipfs://QmAbc123", "http://127.0.0.1:3002/ipfs/");
|
||||||
resolve_uri_candidates("ipfs://QmAbc123", "http://127.0.0.1:3002/ipfs/");
|
|
||||||
assert_eq!(candidates.len(), 2);
|
assert_eq!(candidates.len(), 2);
|
||||||
assert_eq!(candidates[0], "http://127.0.0.1:3002/ipfs/QmAbc123");
|
assert_eq!(candidates[0], "http://127.0.0.1:3002/ipfs/QmAbc123");
|
||||||
assert!(candidates[1].ends_with("/QmAbc123"));
|
assert!(candidates[1].ends_with("/QmAbc123"));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue