mirror of https://github.com/logos-co/staking.git
fix test timeout
This commit is contained in:
parent
82ebd1301e
commit
a53cbb07ac
|
@ -3,4 +3,7 @@ require("@nomicfoundation/hardhat-toolbox");
|
|||
/** @type import('hardhat/config').HardhatUserConfig */
|
||||
module.exports = {
|
||||
solidity: "0.8.20",
|
||||
mocha: {
|
||||
timeout: 100000000,
|
||||
}
|
||||
};
|
||||
|
|
|
@ -9,10 +9,10 @@ describe("StakeManager contract", function () {
|
|||
async function deployTokenFixture() {
|
||||
const [owner, addr1, addr2, addr3] = await ethers.getSigners();
|
||||
const testToken = await ethers.deployContract("Token");
|
||||
await testToken.mint(addr1.address, 12 * 10^18);
|
||||
await testToken.mint(addr2.address, 24 * 10^18);
|
||||
await testToken.mint(addr3.address, 36 * 10^18);
|
||||
return { testToken, owner, addr1, addr2, addr3 };
|
||||
await Promise.all([ testToken.mint(addr1.address, 12 * 10^18),
|
||||
testToken.mint(addr2.address, 24 * 10^18),
|
||||
testToken.mint(addr3.address, 36 * 10^18)]);
|
||||
return { testToken, owner, addr1, addr2, addr3 };
|
||||
}
|
||||
|
||||
async function deployStakeManager() {
|
||||
|
@ -25,5 +25,6 @@ describe("StakeManager contract", function () {
|
|||
it("Deployment should be initialized zero", async function () {
|
||||
const { stakeManager, testToken, owner } = await loadFixture(deployStakeManager);
|
||||
expect(await stakeManager.totalSupply()).to.equal(0);
|
||||
expect(await stakeManager.totalSupply()).to.equal(0);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue