Skip to content

Commit

Permalink
Update APITest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-tara authored Aug 3, 2022
1 parent d504fa6 commit f8a3e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/io/ipfs/api/APITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public void publish() throws Exception {
Map result = ipfs.name.publish(merkleNode.hash);

// Resolve from IPNS
String resolved = ipfs.name.resolve(Multihash.fromBase58((String) result.get("Name")));
String resolved = ipfs.name.resolve((String) result.get("Name"));
Assert.assertEquals("Should be equals", resolved, "/ipfs/" + merkleNode.hash.toString());
}

Expand Down Expand Up @@ -614,7 +614,7 @@ public void nameTest() throws IOException {
String name = "key" + System.nanoTime();
Object gen = ipfs.key.gen(name, Optional.of("rsa"), Optional.of("2048"));
Map mykey = ipfs.name.publish(pointer.hash, Optional.of(name));
String resolved = ipfs.name.resolve(Multihash.fromBase58((String) pub.get("Name")));
String resolved = ipfs.name.resolve((String) pub.get("Name"));
}

@Test
Expand Down

0 comments on commit f8a3e33

Please sign in to comment.