Skip to content

Commit

Permalink
further split test
Browse files Browse the repository at this point in the history
  • Loading branch information
links234 committed Feb 23, 2024
1 parent 24c87ba commit 584ba7d
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ describeSuite({
expect(tx4.result?.successful, "Failed to unlock democracy funds");
expect((await api.query.democracy.votingOf.entries()).length).is.equal(0);

const tx5 = await context.createBlock(
await api.tx.moonbeamLazyMigrations.unlockDemocracyFunds(1)
);
expect(tx5.result?.successful).is.equal(false);
expect(tx5.result?.error?.name).is.equal("AllDemocracyFundsUnlocked");

/// Check there is no democracy lock left
for (let i = 0; i < locks.length; i++) {
const account_locks = await api.query.balances.locks(locks[i]["account"]);
Expand All @@ -90,5 +84,17 @@ describeSuite({
}
},
});

it({
id: "T03",
title: "Test that after migration is complete, we get AllDemocracyFundsUnlocked error.",
test: async function () {
const tx5 = await context.createBlock(
await api.tx.moonbeamLazyMigrations.unlockDemocracyFunds(1)
);
expect(tx5.result?.successful).is.equal(false);
expect(tx5.result?.error?.name).is.equal("AllDemocracyFundsUnlocked");
},
});
},
});

0 comments on commit 584ba7d

Please sign in to comment.