mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-02-13 03:46:30 +00:00
Make test less dependent on exact timing of block timestamp
This commit is contained in:
parent
47f0746f06
commit
973b70734f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user