Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Sep 5, 2024
1 parent a0f7a24 commit 32f7f38
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/helium-entity-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ describe("helium-entity-manager", () => {
expect(Boolean(iotInfoAccount)).to.be.true;
const subDaoAcc = await hsdProgram.account.subDaoV0.fetch(subDao);
expect(subDaoAcc.dcOnboardingFeesPaid.toNumber()).to.be.eq(
subDaoAcc.onboardingDcFee.toNumber()
0
);
});

Expand Down Expand Up @@ -1097,7 +1097,7 @@ describe("helium-entity-manager", () => {
);
expect(infoAcc.isActive).to.be.false;
const subDaoAcc = await hsdProgram.account.subDaoV0.fetch(subDao);
expect(subDaoAcc.dcOnboardingFeesPaid.toNumber()).to.be.eq(5000000);
expect(subDaoAcc.dcOnboardingFeesPaid.toNumber()).to.be.eq(0);
});

it("changes the metadata", async () => {
Expand Down
14 changes: 13 additions & 1 deletion tests/helium-sub-daos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,19 @@ describe("helium-sub-daos", () => {
})
).signers([makerKeypair, hotspotOwner]);

await method.rpc({ skipPreflight: true });
const { pubkeys: { iotInfo: infoKey }} = await method.rpcAndKeys({ skipPreflight: true });

await hemProgram.methods
.setEntityActiveV0({
isActive: true,
entityKey: Buffer.from(bs58.decode(ecc)),
})
.accounts({
activeDeviceAuthority: me,
rewardableEntityConfig,
info: infoKey! as PublicKey,
})
.rpc({ skipPreflight: true });

const { subDaoEpochInfo } = await burnDc(1600000);
const epoch = (
Expand Down

0 comments on commit 32f7f38

Please sign in to comment.