Fix contract tests (#93)

This commit is contained in:
Szymon Szlachtowicz 2021-07-07 10:30:19 +02:00 committed by GitHub
parent 9f268f65d7
commit 961d0a92f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ describe('Contract story', () => {
const { signedMessages } = await getSignedMessages(alice, firstAddress, secondAddress)
await contract.castVotes(signedMessages)
await provider.send('evm_mine', [Math.floor(Date.now() + 10000)])
await provider.send('evm_mine', [Math.floor(Date.now() / 1000 + 10000)])
await contract.finalizeVotingRoom(1)
expect((await contract.votingRoomMap(1)).slice(2)).to.deep.eq([
@ -186,7 +186,7 @@ describe('Contract', () => {
BigNumber.from(1),
])
await provider.send('evm_mine', [Math.floor(Date.now() + 10000)])
await provider.send('evm_mine', [Math.floor(Date.now() / 1000 + 10000)])
await contract.initializeVotingRoom(1, secondAddress.address)
expect((await contract.getCommunityVoting(secondAddress.address)).slice(2)).to.deep.eq([
1,