From eeead8951f17ff2da0662a7f2baf5357c7415871 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:36:03 +1100 Subject: [PATCH] remove upraises annotations from tests --- tests/integration/testmarketplace.nim | 4 ++-- tests/integration/testproofs.nim | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/testmarketplace.nim b/tests/integration/testmarketplace.nim index 087facb71..5478e3889 100644 --- a/tests/integration/testmarketplace.nim +++ b/tests/integration/testmarketplace.nim @@ -1,5 +1,4 @@ import pkg/stew/byteutils -import pkg/codex/units import ./marketplacesuite import ../examples @@ -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 diff --git a/tests/integration/testproofs.nim b/tests/integration/testproofs.nim index db447c1d9..183ad582d 100644 --- a/tests/integration/testproofs.nim +++ b/tests/integration/testproofs.nim @@ -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 @@ -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 @@ -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)