Skip to content

Commit a570b7c

Browse files
Le-CaignecPierreJeanjacquot
authored andcommitted
test: remove tests for experimental networks in utils and config
1 parent 9563e1b commit a570b7c

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

src/common/utils/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const networkConfigs = [
7171
voucherSubgraph: undefined, // no voucher
7272
bridge: {}, // no bridge
7373
shouldRegisterNetwork: false,
74-
isExperimental: true,
74+
isExperimental: false,
7575
},
7676
{
7777
id: 42161,

test/lib/e2e/utils.test.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -601,21 +601,5 @@ describe('utils', () => {
601601
).wallet.checkBalances(NULL_ADDRESS),
602602
).resolves.toBeDefined();
603603
});
604-
test('allowExperimentalNetworks option allow creating signer connected to an experimental network', async () => {
605-
expect(() =>
606-
utils.getSignerFromPrivateKey(
607-
'arbitrum-sepolia-testnet',
608-
getRandomWallet().privateKey,
609-
),
610-
).toThrowError('Invalid provider host name or url');
611-
612-
const signer = utils.getSignerFromPrivateKey(
613-
'arbitrum-sepolia-testnet',
614-
getRandomWallet().privateKey,
615-
{ allowExperimentalNetworks: true },
616-
);
617-
const nonce = await signer.getNonce();
618-
expect(nonce).toBe(0);
619-
});
620604
});
621605
});

test/lib/unit/config.test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ describe('getChainDefaults', () => {
4242
test('unknown id returns empty object', () => {
4343
expect(getChainDefaults(0)).toEqual({});
4444
});
45-
test('experimental networks are accessible with `allowExperimentalNetworks:true` hidden by default', () => {
46-
expect(getChainDefaults(421614)).toEqual({});
47-
expect(
48-
getChainDefaults(421614, { allowExperimentalNetworks: true }).host,
49-
).toBeDefined();
50-
});
5145
});
5246

5347
describe('Networks', () => {

0 commit comments

Comments
 (0)