Skip to content

Commit

Permalink
add debugging traces
Browse files Browse the repository at this point in the history
  • Loading branch information
goncer committed Dec 13, 2023
1 parent 0b61a24 commit e69e622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/sequential/proffOfStake.3rdPartyRewards.accuracy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ describe("Proof of stake tests", () => {
3,
),
),
);
await Sudo.asSudoFinalized(
Sudo.sudoAs(
testUser,
await ProofOfStake.activateLiquidityFor3rdpartyRewards(
Expand All @@ -126,6 +124,9 @@ describe("Proof of stake tests", () => {
),
);
await waitforSessionChange();
// tokens must last one session.
// corner case about rewarding and activating on the same session
await waitforSessionChange();
await Sudo.asSudoFinalized(
Sudo.sudoAs(
testUser,
Expand Down
2 changes: 2 additions & 0 deletions test/sequential/proffOfStake.3rdPartyRewards.setup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
getEventResultFromMangataTx,
} from "../../utils/txHandler";
import { BN_MILLION } from "@mangata-finance/sdk";
import { testLog } from "../../utils/Logger";

let testUser1: User;
let testUser2: User;
Expand Down Expand Up @@ -290,6 +291,7 @@ describe("Proof of stake tests", () => {
).then(async (x) => {
// const event = getEventResultFromMangataTx(x);
const sudoEvent = await getEventErrorFromSudo(x);
testLog.getLog().info("Events:trace" + JSON.stringify(x));
expect(sudoEvent.state).toBe(ExtrinsicResult.ExtrinsicSuccess);
});
await waitIfSessionWillChangeInNblocks(4);
Expand Down

0 comments on commit e69e622

Please sign in to comment.