From 15e7ae855da73fc4601cb99117a1e515cd58af2b Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 12 Feb 2025 14:41:29 +0100 Subject: [PATCH] vault: cleanup tests --- test/Vault.tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Vault.tests.js b/test/Vault.tests.js index 807a29f..155ad5b 100644 --- a/test/Vault.tests.js +++ b/test/Vault.tests.js @@ -43,8 +43,8 @@ describe("Vault", function () { }) it("allows a lock to be set", async function () { - expiry = (await currentTime()) + 80 - maximum = (await currentTime()) + 100 + const expiry = (await currentTime()) + 80 + const maximum = (await currentTime()) + 100 await vault.lock(fund, expiry, maximum) expect(await vault.getLockStatus(fund)).to.equal(LockStatus.Locked) expect(await vault.getLockExpiry(fund)).to.equal(expiry) @@ -832,7 +832,7 @@ describe("Vault", function () { function testBurnedFund() { it("cannot set lock", async function () { - const locking = vault.lock(fund, expiry, maximum) + const locking = vault.lock(fund, expiry, expiry) await expect(locking).to.be.revertedWith("FundAlreadyLocked") })