Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded authored and fgamundi committed Aug 6, 2023
1 parent fb94e6b commit 99222aa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflow-templates/dev-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ runs:
chmod uog+x target/release/moonbeam
cd test
bun install
bun compile-solidity compile
bun moonwall test ${{ inputs.moonwall_environment }}
- name: Upload HTML report
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ jobs:
run: |
cd test
bun install
bun moonwall test CI_upgrade_RT_${{matrix.chain}}
pnpm moonwall test CI_upgrade_RT_${{matrix.chain}}
zombie_upgrade_test:
runs-on:
Expand Down
Binary file modified test/bun.lockb
Binary file not shown.
11 changes: 5 additions & 6 deletions test/suites/para/test_moonbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ describeSuite({
let relayApi: ApiPromise;

beforeAll(async () => {
paraApi = context.polkadotJs({ apiName: "parachain", type: "moon" });
relayApi = context.polkadotJs({ apiName: "relaychain", type: "polkadotJs" });
ethersSigner = context.ethers();
paraApi = context.polkadotJs("parachain");
relayApi = context.polkadotJs("relaychain");

const relayNetwork = relayApi.consts.system.version.specName.toString();
expect(relayNetwork, "Relay API incorrect").to.contain("rococo");
Expand Down Expand Up @@ -107,15 +106,15 @@ describeSuite({
title: "Tags are present on emulated Ethereum blocks",
test: async function () {
expect(
(await ethersSigner.provider!.getBlock("safe"))!.number,
(await context.ethers().provider!.getBlock("safe"))!.number,
"Safe tag is not present"
).to.be.greaterThan(0);
expect(
(await ethersSigner.provider!.getBlock("finalized"))!.number,
(await context.ethers().provider!.getBlock("finalized"))!.number,
"Finalized tag is not present"
).to.be.greaterThan(0);
expect(
(await ethersSigner.provider!.getBlock("latest"))!.number,
(await context.ethers().provider!.getBlock("latest"))!.number,
"Latest tag is not present"
).to.be.greaterThan(0);
// log(await ethersSigner.provider.getTransactionCount(ALITH_ADDRESS, "latest"));
Expand Down
4 changes: 2 additions & 2 deletions test/suites/para/test_moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describeSuite({
let ethersSigner: Signer;

beforeAll(async () => {
paraApi = context.polkadotJs({ apiName: "parachain", type: "moon" });
relayApi = context.polkadotJs({ apiName: "relaychain", type: "polkadotJs" });
paraApi = context.polkadotJs("parachain");
relayApi = context.polkadotJs("relaychain");
ethersSigner = context.ethers()!;

const relayNetwork = relayApi.consts.system.version.specName.toString();
Expand Down

0 comments on commit 99222aa

Please sign in to comment.