Remove delay for DioneDispute unit test

This commit is contained in:
ChronosX88 2021-04-27 01:01:20 +03:00
parent c74ec4db26
commit 301de34cc3
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -40,7 +40,7 @@ describe("DioneDispute", function () {
.to.emit(dioneDispute, 'NewVote')
.withArgs(dhash, addr3.address);
await delay(2000);
await ethers.provider.send("evm_increaseTime", [2]);
await expect(dioneDispute.finishDispute(dhash))
.to.emit(dioneDispute, 'DisputeFinished')
@ -59,7 +59,3 @@ describe("DioneDispute", function () {
.to.equal(ethers.constants.WeiPerEther.mul(12000));
});
});
function delay(ms: number): Promise<void> {
return new Promise( resolve => setTimeout(resolve, ms) );
}