We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e83f8 commit 3749171Copy full SHA for 3749171
src/test/java/org/ipfs/api/Test.java
@@ -226,12 +226,15 @@ public void blockTest() {
226
}
227
228
@org.junit.Test
229
- public void fileTest() {
+ public void fileContentsTest() {
230
try {
231
ipfs.repo.gc();
232
List<Multihash> local = ipfs.refs.local();
233
for (Multihash hash: local) {
234
- Map ls = ipfs.file.ls(hash);
+ try {
235
+ Map ls = ipfs.file.ls(hash);
236
+ return;
237
+ } catch (Exception e) {} // non unixfs files will throw an exception here
238
239
} catch (IOException e) {
240
throw new RuntimeException(e);
0 commit comments