Skip to content

Commit 9cf7a17

Browse files
committed
Fixed failing owner test
1 parent f9070b5 commit 9cf7a17

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

test/fullyBackedSortitionPoolTest.js

Lines changed: 2 additions & 5 deletions
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-
"Caller is not the owner",
176+
"Only owner may select groups",
177177
)
178178
})
179179

@@ -464,10 +464,7 @@ contract("FullyBackedSortitionPool", (accounts) => {
464464
})
465465

466466
it("reverts when called by non-owner", async () => {
467-
await expectRevert(
468-
pool.ban(alice, {from: owner}),
469-
"Caller is not the owner",
470-
)
467+
await expectRevert(pool.ban(alice), "Caller is not the owner")
471468
})
472469
})
473470
})

0 commit comments

Comments
 (0)