From 241fcf10a5f0d786ad302bab1c40fdbf6f81d163 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 9 Mar 2022 11:33:54 +0100 Subject: [PATCH] Unlock host collateral at end of contract --- test/Storage.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Storage.test.js b/test/Storage.test.js index 0d9b2e8..07e987a 100644 --- a/test/Storage.test.js +++ b/test/Storage.test.js @@ -89,11 +89,11 @@ describe("Storage", function () { await advanceTimeTo(end) } - // it("unlocks the host collateral", async function () { - // await mineUntilEnd() - // await storage.finishContract(id) - // await expect(storage.withdraw()).not.to.be.reverted - // }) + it("unlocks the host collateral", async function () { + await waitUntilEnd() + await storage.finishContract(id) + await expect(storage.withdraw()).not.to.be.reverted + }) it("pays the host", async function () { await waitUntilEnd()