Skip to content

Commit b2a1b03

Browse files
committed
Reduce log spam in tests
1 parent f8a49af commit b2a1b03

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

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

+1-6
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,9 @@ public void pinTest() throws IOException {
240240
public void pinUpdate() throws IOException {
241241
MerkleNode child1 = ipfs.add(new NamedStreamable.ByteArrayWrapper("some data".getBytes())).get(0);
242242
Multihash hashChild1 = child1.hash;
243-
System.out.println("child1: " + hashChild1);
244243

245244
CborObject.CborMerkleLink root1 = new CborObject.CborMerkleLink(hashChild1);
246245
MerkleNode root1Res = ipfs.block.put(Collections.singletonList(root1.toByteArray()), Optional.of("cbor")).get(0);
247-
System.out.println("root1: " + root1Res.hash);
248246
ipfs.pin.add(root1Res.hash);
249247

250248
CborObject.CborList root2 = new CborObject.CborList(Arrays.asList(new CborObject.CborMerkleLink(hashChild1), new CborObject.CborLong(System.currentTimeMillis())));
@@ -267,11 +265,9 @@ public void pinUpdate() throws IOException {
267265
public void rawLeafNodePinUpdate() throws IOException {
268266
MerkleNode child1 = ipfs.block.put("some data".getBytes(), Optional.of("raw"));
269267
Multihash hashChild1 = child1.hash;
270-
System.out.println("child1: " + hashChild1);
271268

272269
CborObject.CborMerkleLink root1 = new CborObject.CborMerkleLink(hashChild1);
273270
MerkleNode root1Res = ipfs.block.put(Collections.singletonList(root1.toByteArray()), Optional.of("cbor")).get(0);
274-
System.out.println("root1: " + root1Res.hash);
275271
ipfs.pin.add(root1Res.hash);
276272

277273
MerkleNode child2 = ipfs.block.put("G'day new tree".getBytes(), Optional.of("raw"));
@@ -606,7 +602,7 @@ public void fileContentsTest() throws IOException {
606602
}
607603

608604
@Test
609-
// @Ignore("name test may hang forever")
605+
@Ignore("name test may hang forever")
610606
public void nameTest() throws IOException {
611607
MerkleNode pointer = new MerkleNode("QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB");
612608
Map pub = ipfs.name.publish(pointer.hash);
@@ -685,7 +681,6 @@ public void swarmTest() throws IOException {
685681
throw new IllegalStateException("Couldn't contact any node!");
686682
}
687683
List<Peer> peers = ipfs.swarm.peers();
688-
System.out.println(peers);
689684
}
690685

691686
@Test

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

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public void add() throws IOException, URISyntaxException {
3535
}
3636
if (b.toString().contains("rror"))
3737
throw new IllegalStateException("Error returned from IPFS: " + b.toString());
38-
System.out.println(b.toString());
3938
}
4039

4140
public static void main(String[] a) throws Exception {

0 commit comments

Comments
 (0)