Skip to content

Commit

Permalink
fix: add debugging for allocate receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Jul 16, 2024
1 parent d4f5f45 commit 315f761
Show file tree
Hide file tree
Showing 2 changed files with 8,003 additions and 6,223 deletions.
15 changes: 13 additions & 2 deletions packages/upload-api/test/handlers/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,20 @@ export const test = {
assert.ok(secondNext.allocate.receipt)
assert.ok(!secondNext.put.receipt)
assert.ok(!secondNext.accept.receipt)

const firstAllocateTaskLink = firstNext.allocate.task.link()
const secondAllocateTaskLink = secondNext.allocate.task.link()

if (firstAllocateTaskLink.toString() !== secondAllocateTaskLink.toString()) {
console.error('allocate receipts not equal:')
console.error(firstNext.allocate.receipt)
console.error(secondNext.allocate.receipt)
}

// allocate receipt is from same invocation CID
assert.ok(
firstNext.allocate.task.link().equals(secondNext.allocate.task.link())
assert.equal(
firstAllocateTaskLink.toString(),
secondAllocateTaskLink.toString()
)
},
'blob/add schedules allocation and returns effects for allocate, accept and put together with their receipts (when stored)':
Expand Down
Loading

0 comments on commit 315f761

Please sign in to comment.