Skip to content

Commit 0364f52

Browse files
committed
Updated expected error message for non-owner test
1 parent 9cf7a17 commit 0364f52

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

test/fullyBackedSortitionPoolTest.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ contract("FullyBackedSortitionPool", (accounts) => {
173173

174174
await expectRevert(
175175
pool.selectSetGroup(3, seed, minimumBondableValue, {from: alice}),
176-
"Only owner may select groups",
176+
"Caller is not the owner",
177177
)
178178
})
179179

@@ -443,6 +443,15 @@ contract("FullyBackedSortitionPool", (accounts) => {
443443
expect(await pool.bannedOperators(alice)).to.be.true
444444
})
445445

446+
it("does not revert when called multiple times", async () => {
447+
expect(await pool.bannedOperators(alice)).to.be.false
448+
449+
await pool.ban(alice, {from: owner})
450+
await pool.ban(alice, {from: owner})
451+
452+
expect(await pool.bannedOperators(alice)).to.be.true
453+
})
454+
446455
it("does not revert when operator is not registered", async () => {
447456
expect(await pool.isOperatorRegistered(alice)).to.be.false
448457

0 commit comments

Comments
 (0)