Add test that checks filling slot fails without reservation

This commit is contained in:
Eric 2024-10-04 13:35:13 +10:00
parent 530389a7a7
commit 773fc28c78
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -344,6 +344,12 @@ describe("Marketplace", function () {
marketplace.fillSlot(slot.request, lastSlot, proof)
).to.be.revertedWith("Slot is not free")
})
it("fails if slot is not reserved first", async function () {
await expect(
marketplace.fillSlot(slot.request, slot.index, proof)
).to.be.revertedWith("Reservation required")
})
})
describe("filling slot without collateral", function () {