Skip to content

Commit

Permalink
fix: ensure idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 20, 2024
1 parent 107a099 commit 8b0584d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/upload-api/test/handlers/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,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)
Expand Down

0 comments on commit 8b0584d

Please sign in to comment.