Make test less dependent on exact timing of block timestamp

This commit is contained in:
Mark Spanbroek 2021-10-18 16:20:30 +02:00
parent 47f0746f06
commit 973b70734f
1 changed files with 1 additions and 1 deletions

View File

@ -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,