Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove broken failing test of @Deprecated DNS method #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/main/java/io/ipfs/api/IPFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ public Map resolve(String scheme, Multihash hash, boolean recursive) throws IOEx
return retrieveMap("resolve?arg=/" + scheme+"/"+hash +"&r="+recursive);
}

@Deprecated
public String dns(String domain, boolean recursive) throws IOException {
Map res = retrieveMap("dns?arg=" + domain + "&r=" + recursive);
return (String)res.get("Path");
}

public Map mount(java.io.File ipfsRoot, java.io.File ipnsRoot) throws IOException {
if (ipfsRoot != null && !ipfsRoot.exists())
ipfsRoot.mkdirs();
Expand Down
6 changes: 0 additions & 6 deletions src/test/java/io/ipfs/api/APITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -735,12 +735,6 @@ public void nameTest() throws IOException {
String resolved = ipfs.name.resolve(Cid.decode((String) pub.get("Name")));
}

@Test
public void dnsTest() throws IOException {
String domain = "ipfs.io";
String dns = ipfs.dns(domain, true);
}

public void mountTest() throws IOException {
Map mount = ipfs.mount(null, null);
}
Expand Down