Skip to content

Commit

Permalink
prettify chain manager test code description
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Sep 17, 2024
1 parent 6ca2f00 commit 7d3a62b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/testcases/run_in_band/chain_manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ describe('Neutron / Chain Manager', () => {
});

describe('check software upgrade permissions', () => {
// checking neutronClient's interaction with chain manager whereas this account
// hasn't been given any permissions (the proposal above contains other authorities)
it('random account cannot set or cancel', async () => {
await expect(
neutronClient.execute(
Expand Down Expand Up @@ -496,7 +498,7 @@ describe('Neutron / Chain Manager', () => {
).rejects.toThrow(/Unauthorized/);
});

it('only cancel cannot set', async () => {
it('onlyCancel cannot set', async () => {
await expect(
cancelUpgradeOnlyClient.execute(
chainManagerAddress,
Expand All @@ -511,7 +513,7 @@ describe('Neutron / Chain Manager', () => {
).rejects.toThrow(/Unauthorized/);
});

it('only set cannot cancel', async () => {
it('onlySet cannot cancel', async () => {
await expect(
upgradeOnlyClient.execute(
chainManagerAddress,
Expand Down Expand Up @@ -566,7 +568,7 @@ describe('Neutron / Chain Manager', () => {
});

describe('limited access can do what they are granted to do', () => {
it('only set can set', async () => {
it('onlySet can set', async () => {
await upgradeOnlyClient.execute(
chainManagerAddress,
{
Expand All @@ -582,7 +584,7 @@ describe('Neutron / Chain Manager', () => {
expect(plan.plan.height.toString()).toEqual('100000');
});

it('only cancel can cancel', async () => {
it('onlyCancel can cancel', async () => {
await cancelUpgradeOnlyClient.execute(
chainManagerAddress,
{
Expand Down

0 comments on commit 7d3a62b

Please sign in to comment.