File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/io/ipfs/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ public void pinUpdate() throws IOException {
248
248
System .out .println ("root1: " + root1Res .hash );
249
249
ipfs .pin .add (root1Res .hash );
250
250
251
- CborObject .CborList root2 = new CborObject .CborList (Arrays .asList (new CborObject .CborMerkleLink (hashChild1 ), new CborObject .CborLong (42 )));
251
+ CborObject .CborList root2 = new CborObject .CborList (Arrays .asList (new CborObject .CborMerkleLink (hashChild1 ), new CborObject .CborLong (System . currentTimeMillis () )));
252
252
MerkleNode root2Res = ipfs .block .put (Collections .singletonList (root2 .toByteArray ()), Optional .of ("cbor" )).get (0 );
253
253
List <Multihash > update = ipfs .pin .update (root1Res .hash , root2Res .hash , true );
254
254
@@ -281,7 +281,7 @@ public void rawLeafNodePinUpdate() throws IOException {
281
281
CborObject .CborList root2 = new CborObject .CborList (Arrays .asList (
282
282
new CborObject .CborMerkleLink (hashChild1 ),
283
283
new CborObject .CborMerkleLink (hashChild2 ),
284
- new CborObject .CborLong (42 ))
284
+ new CborObject .CborLong (System . currentTimeMillis () ))
285
285
);
286
286
MerkleNode root2Res = ipfs .block .put (Collections .singletonList (root2 .toByteArray ()), Optional .of ("cbor" )).get (0 );
287
287
List <Multihash > update = ipfs .pin .update (root1Res .hash , root2Res .hash , false );
You can’t perform that action at this time.
0 commit comments