From 9deef577b8f79665e9df91d2c13e8747c86219f1 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 8 Nov 2024 00:12:52 +0000 Subject: [PATCH] fix: ensure idempotent --- packages/upload-api/test/handlers/blob.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/upload-api/test/handlers/blob.js b/packages/upload-api/test/handlers/blob.js index 1bebe5c2..5ea71ce6 100644 --- a/packages/upload-api/test/handlers/blob.js +++ b/packages/upload-api/test/handlers/blob.js @@ -113,6 +113,9 @@ export const test = { }, }, proofs: [proof], + // Note: we have to set an expiration, or the default expiration value + // will be set when the invocation is executed and the UCAN issued. + expiration: (Math.floor(Date.now() / 1000)) + 10 }) // Invoke `blob/add` for the first time const firstBlobAdd = await invocation.execute(connection)