Skip to content

Commit 344c3c4

Browse files
committed
Fix pin update tests
1 parent 02a30e7 commit 344c3c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public void pinUpdate() throws IOException {
248248
System.out.println("root1: " + root1Res.hash);
249249
ipfs.pin.add(root1Res.hash);
250250

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())));
252252
MerkleNode root2Res = ipfs.block.put(Collections.singletonList(root2.toByteArray()), Optional.of("cbor")).get(0);
253253
List<Multihash> update = ipfs.pin.update(root1Res.hash, root2Res.hash, true);
254254

@@ -281,7 +281,7 @@ public void rawLeafNodePinUpdate() throws IOException {
281281
CborObject.CborList root2 = new CborObject.CborList(Arrays.asList(
282282
new CborObject.CborMerkleLink(hashChild1),
283283
new CborObject.CborMerkleLink(hashChild2),
284-
new CborObject.CborLong(42))
284+
new CborObject.CborLong(System.currentTimeMillis()))
285285
);
286286
MerkleNode root2Res = ipfs.block.put(Collections.singletonList(root2.toByteArray()), Optional.of("cbor")).get(0);
287287
List<Multihash> update = ipfs.pin.update(root1Res.hash, root2Res.hash, false);

0 commit comments

Comments
 (0)