From 973b70734fb49c138897bcaeb0fa44d978e40691 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 18 Oct 2021 16:20:30 +0200 Subject: [PATCH] Make test less dependent on exact timing of block timestamp --- test/StorageContract.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/StorageContract.test.js b/test/StorageContract.test.js index 7377ee5..59b23af 100644 --- a/test/StorageContract.test.js +++ b/test/StorageContract.test.js @@ -142,7 +142,7 @@ describe("Storage Contract", function () { }) it("cannot be created when bid has expired", async function () { - let expired = Math.round(Date.now() / 1000) - 1 // 1 second ago + let expired = Math.round(Date.now() / 1000) - 60 // 1 minute ago let bidHash = hashBid(requestHash, expired, price) await expect(StorageContract.deploy( duration,