mirror of
https://github.com/logos-co/staking.git
synced 2025-01-11 03:06:24 +00:00
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 */
|
/** @type import('hardhat/config').HardhatUserConfig */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
solidity: "0.8.20",
|
solidity: "0.8.20",
|
||||||
|
mocha: {
|
||||||
|
timeout: 100000000,
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
@ -9,10 +9,10 @@ describe("StakeManager contract", function () {
|
|||||||
async function deployTokenFixture() {
|
async function deployTokenFixture() {
|
||||||
const [owner, addr1, addr2, addr3] = await ethers.getSigners();
|
const [owner, addr1, addr2, addr3] = await ethers.getSigners();
|
||||||
const testToken = await ethers.deployContract("Token");
|
const testToken = await ethers.deployContract("Token");
|
||||||
await testToken.mint(addr1.address, 12 * 10^18);
|
await Promise.all([ testToken.mint(addr1.address, 12 * 10^18),
|
||||||
await testToken.mint(addr2.address, 24 * 10^18);
|
testToken.mint(addr2.address, 24 * 10^18),
|
||||||
await testToken.mint(addr3.address, 36 * 10^18);
|
testToken.mint(addr3.address, 36 * 10^18)]);
|
||||||
return { testToken, owner, addr1, addr2, addr3 };
|
return { testToken, owner, addr1, addr2, addr3 };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deployStakeManager() {
|
async function deployStakeManager() {
|
||||||
@ -25,5 +25,6 @@ describe("StakeManager contract", function () {
|
|||||||
it("Deployment should be initialized zero", async function () {
|
it("Deployment should be initialized zero", async function () {
|
||||||
const { stakeManager, testToken, owner } = await loadFixture(deployStakeManager);
|
const { stakeManager, testToken, owner } = await loadFixture(deployStakeManager);
|
||||||
expect(await stakeManager.totalSupply()).to.equal(0);
|
expect(await stakeManager.totalSupply()).to.equal(0);
|
||||||
|
expect(await stakeManager.totalSupply()).to.equal(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user