Skip to content

Commit

Permalink
chore: remove skip in export tests
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Jul 27, 2023
1 parent ad653cf commit 3bf32e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/axelar-local-dev/src/Network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class Network {
gasService: AxelarGasService;
constAddressDeployer: Contract;
create3Deployer: Contract;
relayer?: EvmRelayer;
isRemote: boolean | undefined;
url: string | undefined;
ganacheProvider: any;
Expand All @@ -108,7 +107,6 @@ export class Network {
this.isRemote = networkish.isRemote;
this.url = networkish.url;
this.tokens = networkish.tokens;
this.relayer = networkish.evmRelayer || evmRelayer;
}
async deployGateway(): Promise<Contract> {
logger.log(`Deploying the Axelar Gateway for ${this.name}... `);
Expand Down
4 changes: 2 additions & 2 deletions packages/axelar-local-dev/src/__tests__/export.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function deployAndFundUsdc(chain: Network) {
await chain.deployToken('Axelar Wrapped aUSDC', 'aUSDC', 6, BigInt(1e22));
}

describe.skip('createAndExport', () => {
describe('createAndExport', () => {
const wallet = Wallet.createRandom();
const chains = ['A', 'B'];
const outputPath = './local.json';
Expand All @@ -46,7 +46,7 @@ describe.skip('createAndExport', () => {
});

afterEach(async () => {
await destroyExported();
await destroyExported({ evm: evmRelayer });
});

it('should export a local.json file correctly', async () => {
Expand Down
9 changes: 5 additions & 4 deletions packages/axelar-local-dev/src/networkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import { Network, networks, NetworkOptions, NetworkInfo, NetworkSetup } from './
import { AxelarGateway__factory as AxelarGatewayFactory } from './types/factories/@axelar-network/axelar-cgp-solidity/contracts/AxelarGateway__factory';
import { AxelarGasService__factory as AxelarGasServiceFactory } from './types/factories/@axelar-network/axelar-cgp-solidity/contracts/gas-service/AxelarGasService__factory';
import { ConstAddressDeployer, Create3Deployer } from './contracts';
import { Server } from 'http';

const { keccak256, id, solidityPack, toUtf8Bytes } = ethers.utils;

let serverInstance: any;
let serverInstance: Server | undefined;

export interface ChainCloneData {
name: string;
Expand Down Expand Up @@ -283,8 +284,8 @@ export async function forkNetwork(chainInfo: ChainCloneData, options: NetworkOpt
}

export async function stop(network: string | Network) {
if (typeof network === 'string') network = networks.find((chain) => chain.name == network)!;
if (network.server != null) await network.server.close();
if (typeof network === 'string') network = networks.find((chain) => chain.name === network)!;
if (network.server) await network.server.close();
networks.splice(networks.indexOf(network), 1);
}

Expand All @@ -294,7 +295,7 @@ export async function stopAll() {
}
if (serverInstance) {
await serverInstance.close();
serverInstance = null;
serverInstance = undefined;
}
}

Expand Down

0 comments on commit 3bf32e3

Please sign in to comment.