remove console.log from tests
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s Details

This commit is contained in:
Ladd Hoffman 2024-04-02 14:19:28 -05:00
parent 90ac50ec39
commit 699321979f
2 changed files with 0 additions and 6 deletions

View File

@ -127,22 +127,18 @@ describe('DAO', () => {
describe('Stake', async () => {
beforeEach(async () => {
time.increase(POOL_DURATION + 1);
console.log('evaluating first pool');
await dao.evaluateOutcome(0);
expect(await dao.balanceOf(account1)).to.equal(100);
expect(await dao.balanceOf(dao.target)).to.equal(0);
console.log('initiating second pool');
await initiateValidationPool();
expect(await dao.balanceOf(dao.target)).to.equal(100);
});
it('should be able to stake before validation pool has elapsed', async () => {
console.log('staking on second pool');
await dao.stake(1, 10, true);
expect(await dao.balanceOf(account1)).to.equal(90);
expect(await dao.balanceOf(dao.target)).to.equal(110);
time.increase(POOL_DURATION + 1);
console.log('evaluating second pool');
await expect(dao.evaluateOutcome(1)).to.emit(dao, 'ValidationPoolResolved').withArgs(1, true, true);
expect(await dao.balanceOf(dao.target)).to.equal(0);
expect(await dao.balanceOf(account1)).to.equal(200);

View File

@ -98,7 +98,6 @@ describe('Proposal', () => {
describe('Evaluate attestation', () => {
it('when threshold is met, advance to referendum 0% binding', async () => {
console.log('total REP', await dao.totalSupply());
await proposals.attest(0, 200);
await expect(proposals.evaluateAttestation(0)).to.emit(dao, 'ValidationPoolInitiated').withArgs(2);
proposal = await proposals.proposals(0);
@ -216,7 +215,6 @@ describe('Proposal', () => {
.to.emit(dao, 'ValidationPoolInitiated').withArgs(3);
proposal = await proposals.proposals(0);
expect(proposal.stage).to.equal(2);
console.log('evaluated pool 2');
});
afterEach(async () => {