Skip to content

Commit

Permalink
remove setupSingle
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Dec 21, 2023
1 parent a4aea9d commit 4de8cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
34 changes: 0 additions & 34 deletions integration_tests/src/testSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,37 +273,3 @@ export const setupPark = async (
}
return instance;
};

export const setupSingle = async (
context = 'lido',
network: string = 'neutron',
): Promise<cosmopark> => {
const wallets = await generateWallets();
const config: CosmoparkConfig = {
context,
networks: {},
master_mnemonic: wallets.master,
loglevel: 'info',
wallets: {
demowallet1: {
mnemonic: wallets.demowallet1,
balance: '1000000000',
},
demo1: { mnemonic: wallets.demo1, balance: '1000000000' },
demo2: { mnemonic: wallets.demo2, balance: '1000000000' },
demo3: { mnemonic: wallets.demo3, balance: '1000000000' },
},
};
config.networks[network] = networkConfigs[network];
const instance = await cosmopark.create(config);
await Promise.all(
Object.entries(instance.ports).map(([network, ports]) =>
awaitFirstBlock(`127.0.0.1:${ports.rpc}`).catch((e) => {
console.log(`Failed to await first block for ${network}: ${e}`);
throw e;
}),
),
);
console.log('Awaited first blocks');
return instance;
};
5 changes: 2 additions & 3 deletions integration_tests/src/testcases/validator-set.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
import { Client as NeutronClient } from '@neutron-org/client-ts';
import { AccountData, DirectSecp256k1HdWallet } from '@cosmjs/proto-signing';
import { GasPrice } from '@cosmjs/stargate';
import { setupSingle } from '../testSuite';
import { setupPark, setupSingle } from '../testSuite';

Check failure on line 10 in integration_tests/src/testcases/validator-set.test.ts

View workflow job for this annotation

GitHub Actions / Actions - integration test (ubuntu-latest)

'setupSingle' is defined but never used.
import fs from 'fs';
import Cosmopark from '@neutron-org/cosmopark';

Expand All @@ -25,8 +25,7 @@ describe('Validator set', () => {
} = {};

beforeAll(async () => {
context.park = await setupSingle('validatorset', 'neutron');

context.park = await setupPark('validatorset', ['neutron'], false);
context.wallet = await DirectSecp256k1HdWallet.fromMnemonic(
context.park.config.wallets.demowallet1.mnemonic,
{
Expand Down

0 comments on commit 4de8cc9

Please sign in to comment.