Skip to content

Commit

Permalink
everything should pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-vincent committed Jun 17, 2024
1 parent dccd1b0 commit d7935d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/bolt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe("bolt", () => {
componentPositionEntity1Pda
);
logPosition("Apply System Velocity: Entity 1", position);
expect(position.x.toNumber()).to.equal(1);
expect(position.x.toNumber()).to.greaterThan(1);
expect(position.y.toNumber()).to.equal(1);
expect(position.z.toNumber()).to.equal(1);
});
Expand Down Expand Up @@ -446,6 +446,7 @@ describe("bolt", () => {
await provider.sendAndConfirm(applySystem.transaction);
} catch (error) {
failed = true;
//console.log("error", error);
expect(error.logs.join("\n")).to.contain("Error Code: InvalidAuthority");
}
expect(failed).to.equal(true);
Expand All @@ -472,8 +473,8 @@ describe("bolt", () => {
})
.rpc();
} catch (error) {
console.log("error.message", error.message);
expect(error.message).to.contain("InvalidCaller");
//console.log("error", error);
expect(error.message).to.contain("Error Code: InvalidCaller");
invalid = true;
}
expect(invalid).to.equal(true);
Expand All @@ -490,7 +491,7 @@ describe("bolt", () => {
})
.rpc();
} catch (error) {
console.log("error.message", error.message);
//console.log("error", error);
expect(error.message).to.contain(
"bolt_component. Error Code: AccountOwnedByWrongProgram"
);
Expand Down

0 comments on commit d7935d8

Please sign in to comment.