Skip to content

Commit

Permalink
fix CI coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabasco committed Jun 8, 2024
1 parent add2434 commit c928cf2
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions test/operators/whitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,24 +731,29 @@ describe('Whitelisting Operator Tests', () => {
);
});

it('Get whitelisted address for a large number of operator IDs', async () => {
const whitelistAddress = owners[4].account.address;
(process.env.SOLIDITY_COVERAGE ? it.skip : it)(
'Get whitelisted address for a large number of operator IDs',
async () => {
const whitelistAddress = owners[4].account.address;

// Register a large number of operators
const largeNumber = 3000;
await registerOperators(1, largeNumber, CONFIG.minimalOperatorFee);
// Register a large number of operators
const largeNumber = 3000;
await registerOperators(1, largeNumber, CONFIG.minimalOperatorFee);

let operatorIds = [];
for (let i = 1; i <= largeNumber; i++) {
operatorIds.push(i);
}
let operatorIds = [];
for (let i = 1; i <= largeNumber; i++) {
operatorIds.push(i);
}

await ssvNetwork.write.setOperatosWhitelists([operatorIds, [whitelistAddress]], {
account: owners[1].account,
});
await ssvNetwork.write.setOperatosWhitelists([operatorIds, [whitelistAddress]], {
account: owners[1].account,
});

expect(await ssvViews.read.getWhitelistedOperators([operatorIds, whitelistAddress])).to.be.deep.equal(operatorIds);
});
expect(await ssvViews.read.getWhitelistedOperators([operatorIds, whitelistAddress])).to.be.deep.equal(
operatorIds,
);
},
);

it('Get private operator by id', async () => {
await ssvNetwork.write.registerOperator([DataGenerator.publicKey(0), CONFIG.minimalOperatorFee, false], {
Expand Down

0 comments on commit c928cf2

Please sign in to comment.