Skip to content

Commit

Permalink
remove upraises annotations from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle committed Jan 9, 2024
1 parent b8b3360 commit eeead89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/integration/testmarketplace.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pkg/stew/byteutils
import pkg/codex/units
import ./marketplacesuite
import ../examples

Expand Down Expand Up @@ -46,8 +45,9 @@ marketplacesuite "Marketplace payouts":
let cid = clientApi.upload(data).get

var slotIdxFilled = none UInt256
proc onSlotFilled(event: SlotFilled) {.upraises:[].} =
proc onSlotFilled(event: SlotFilled) =
slotIdxFilled = some event.slotIndex

let subscription = await marketplace.subscribe(SlotFilled, onSlotFilled)

# client requests storage but requires two nodes to host the content
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/testproofs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ marketplacesuite "Simulate invalid proofs":
check eventually client0.purchaseStateIs(purchaseId, "started")

var slotWasFreed = false
proc onSlotFreed(event: SlotFreed) {.gcsafe, upraises:[].} =
proc onSlotFreed(event: SlotFreed) =
if event.requestId == requestId and
event.slotIndex == 0.u256: # assume only one slot, so index 0
slotWasFreed = true
Expand Down Expand Up @@ -155,7 +155,7 @@ marketplacesuite "Simulate invalid proofs":
check eventually client0.purchaseStateIs(purchaseId, "started")

var slotWasFreed = false
proc onSlotFreed(event: SlotFreed) {.gcsafe, upraises:[].} =
proc onSlotFreed(event: SlotFreed) =
if event.requestId == requestId and
event.slotIndex == 0.u256: # assume only one slot, so index 0
slotWasFreed = true
Expand Down Expand Up @@ -221,7 +221,7 @@ marketplacesuite "Simulate invalid proofs":


var provider0slotIndex = none UInt256
proc onSlotFilled(event: SlotFilled) {.upraises:[].} =
proc onSlotFilled(event: SlotFilled) =
provider0slotIndex = some event.slotIndex

let subscription = await marketplace.subscribe(SlotFilled, onSlotFilled)
Expand Down

0 comments on commit eeead89

Please sign in to comment.