Skip to content

Commit

Permalink
tests stability fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pahor167 committed Sep 1, 2023
1 parent 1f911ba commit 5dba0fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ jobs:
- name: Execute matrix command for test
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
timeout_minutes: 60
max_attempts: 3
command: |
${{ matrix.command }}
Expand Down Expand Up @@ -669,7 +669,7 @@ jobs:
- name: Execute matrix command for test
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
timeout_minutes: 60
max_attempts: 3
command: |
${{ matrix.command }}
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/test/common/feehandlerseller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract('FeeHandlerSeller', (accounts: string[]) => {
mentoFeeHandlerSeller = await MentoFeeHandlerSeller.new(true)
contractsToTest = [mentoFeeHandlerSeller, uniswapFeeHandlerSeller]
for (const contract of contractsToTest) {
contract.initialize(registry.address, [], [])
await contract.initialize(registry.address, [], [])
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ contract('DowntimeSlasher', (accounts: string[]) => {
await validators.affiliate(groups[0], { from: validatorList[1] })
await validators.affiliate(groups[1], { from: validatorList[2] })
await slasher.initialize(registry.address, slashingPenalty, slashingReward, slashableDowntime)
await Promise.all(
accounts.map((account) => mockLockedGold.setAccountTotalLockedGold(account, 50000))
)
for (const account of accounts) {
await mockLockedGold.setAccountTotalLockedGold(account, 50000)
}
})

describe('#initialize()', () => {
Expand Down

0 comments on commit 5dba0fc

Please sign in to comment.