Skip to content

Commit 6e4f300

Browse files
committed
fix file tests
1 parent 492fe91 commit 6e4f300

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<dependency>
7070
<groupId>com.github.ipld</groupId>
7171
<artifactId>java-cid</artifactId>
72-
<version>v1.0.1</version>
72+
<version>v1.1.0</version>
7373
</dependency>
7474
</dependencies>
7575

src/test/java/io/ipfs/api/APITest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ public void hostFileTest() throws IOException {
171171
public void fileTest(NamedStreamable file) {
172172
try {
173173
MerkleNode addResult = ipfs.add(file);
174-
List<MerkleNode> lsResult = ipfs.ls(addResult.hash);
175-
if (lsResult.size() != 1)
176-
throw new IllegalStateException("Incorrect number of objects in ls!");
177-
if (!lsResult.get(0).equals(addResult))
178-
throw new IllegalStateException("Object not returned in ls!");
179174
byte[] catResult = ipfs.cat(addResult.hash);
180175
byte[] getResult = ipfs.get(addResult.hash);
181176
if (!Arrays.equals(catResult, file.getContents()))

0 commit comments

Comments
 (0)