Skip to content

Commit f835e3c

Browse files
committed
refactor: remove useless tests
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
1 parent d58b8bd commit f835e3c

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/common/storage/tests/location.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -209,25 +209,3 @@ fn test_parse_uri_location() -> Result<()> {
209209

210210
Ok(())
211211
}
212-
213-
#[test]
214-
fn test_parse_ipfs_uri_location() {
215-
let l = UriLocation {
216-
protocol: "ipfs".to_string(),
217-
name: "somename".to_string(),
218-
path: "/".to_string(),
219-
connection: BTreeMap::new(),
220-
};
221-
222-
let want_config = StorageParams::Ipfs(StorageIpfsConfig {
223-
endpoint_url: STORAGE_IPFS_DEFAULT_ENDPOINT.to_string(),
224-
root: "/ipfs/".to_string(),
225-
});
226-
let want_path = "somename".to_string();
227-
if let Ok((got_config, got_path)) = parse_uri_location(&l) {
228-
assert_eq!(want_path, got_path, "want:{}, got:{}", want_path, got_path);
229-
assert_eq!(want_config, got_config);
230-
} else {
231-
unreachable!()
232-
}
233-
}

0 commit comments

Comments
 (0)