Skip to content

Commit

Permalink
fix(e2e): use strict eq instead of gte when testing balances
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Sep 5, 2022
1 parent edd5808 commit 397bcac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/scenarios/create-subgraphs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Publish subgraphs', () => {
for (const curator of curatorFixtures) {
const address = curator.signer.address
const balance = await GraphToken.balanceOf(address)
expect(balance).gte(curator.grtBalance.sub(curator.signalled))
expect(balance).eq(curator.grtBalance.sub(curator.signalled))
}
})
})
Expand Down
4 changes: 2 additions & 2 deletions e2e/scenarios/open-allocations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Open allocations', () => {
for (const indexer of indexerFixtures) {
const address = indexer.signer.address
const balance = await GraphToken.balanceOf(address)
expect(balance).gte(indexer.grtBalance.sub(indexer.stake))
expect(balance).eq(indexer.grtBalance.sub(indexer.stake))
}
})
})
Expand All @@ -35,7 +35,7 @@ describe('Open allocations', () => {
for (const indexer of indexerFixtures) {
const address = indexer.signer.address
const tokensStaked = (await Staking.stakes(address)).tokensStaked
expect(tokensStaked).gte(indexer.stake)
expect(tokensStaked).eq(indexer.stake)
}
})
})
Expand Down

0 comments on commit 397bcac

Please sign in to comment.