From eaf3cc101f771838539b6c90b95e432640df3196 Mon Sep 17 00:00:00 2001 From: bronco Date: Thu, 31 Aug 2023 11:47:52 +0200 Subject: [PATCH] fix: skipping specs with disabled pools --- .../exits.module.integration-mainnet.spec.ts | 6 +- ...itsProportional.module.integration.spec.ts | 4 +- .../joins/joins.module.integration.spec.ts | 95 ++++++++++--------- 3 files changed, 54 insertions(+), 51 deletions(-) diff --git a/balancer-js/src/modules/exits/exits.module.integration-mainnet.spec.ts b/balancer-js/src/modules/exits/exits.module.integration-mainnet.spec.ts index 18e96277d..d278254d5 100644 --- a/balancer-js/src/modules/exits/exits.module.integration-mainnet.spec.ts +++ b/balancer-js/src/modules/exits/exits.module.integration-mainnet.spec.ts @@ -45,7 +45,7 @@ describe('generalised exit execution', async function () { }); }); - context('ERC4626 - bbausd3', async () => { + context.skip('ERC4626 - bbausd3', async () => { if (!TEST_BBAUSD3) return true; const network = Network.MAINNET; const pool = ADDRESSES[network].bbausd3; @@ -113,7 +113,7 @@ describe('generalised exit execution', async function () { }); }); - context('GearboxLinear - bbgusd', async () => { + context.skip('GearboxLinear - bbgusd', async () => { const network = Network.MAINNET; const pool = ADDRESSES[network].bbgusd; const slippage = '10'; // 10 bps = 0.1% @@ -180,7 +180,7 @@ describe('generalised exit execution', async function () { }); }); - context('AaveLinear - bbausd2', async () => { + context.skip('AaveLinear - bbausd2', async () => { const network = Network.MAINNET; const pool = ADDRESSES[network].bbausd2; const slippage = '10'; // 10 bps = 0.1% diff --git a/balancer-js/src/modules/exits/exitsProportional.module.integration.spec.ts b/balancer-js/src/modules/exits/exitsProportional.module.integration.spec.ts index e37bf72d8..501616476 100644 --- a/balancer-js/src/modules/exits/exitsProportional.module.integration.spec.ts +++ b/balancer-js/src/modules/exits/exitsProportional.module.integration.spec.ts @@ -53,7 +53,7 @@ describe('generalised exit execution', async () => { }, ]); }); - context('composable stable pool - boosted', async () => { + context.skip('composable stable pool - boosted', async () => { const testPool = addresses.bbgusd; await runTests([ { @@ -67,7 +67,7 @@ describe('generalised exit execution', async () => { }, ]); }); - context('weighted with boosted', async () => { + context.skip('weighted with boosted', async () => { const testPool = addresses.STG_BBAUSD; await runTests([ { diff --git a/balancer-js/src/modules/joins/joins.module.integration.spec.ts b/balancer-js/src/modules/joins/joins.module.integration.spec.ts index c30ba558f..cc3223c8b 100644 --- a/balancer-js/src/modules/joins/joins.module.integration.spec.ts +++ b/balancer-js/src/modules/joins/joins.module.integration.spec.ts @@ -105,52 +105,55 @@ describe('generalised join execution', async function () { }); }); - context('join with wETH vs ETH - where first step is a swap', async () => { - if (!TEST_JOIN_WITH_ETH_SWAP_FIRST) return true; - - before(async () => { - testPool = addresses.swEth_bbaweth; - tokens = [addresses.WETH, addresses.swETH]; - balances = [ - parseFixed('10', addresses.WETH.decimals).toString(), - parseFixed('10', addresses.swETH.decimals).toString(), - ]; - }); - - it('should join with wETH', async () => { - const tokensIn = [addresses.WETH.address, addresses.swETH.address]; - const amountsIn = [ - parseFixed('1', addresses.WETH.decimals).toString(), - parseFixed('1', addresses.swETH.decimals).toString(), - ]; - await testGeneralisedJoin( - sdk, - signer, - userAddress, - testPool, - tokensIn, - amountsIn, - simulationType - ); - }); - - it('should join with ETH', async () => { - const tokensIn = [AddressZero, addresses.swETH.address]; - const amountsIn = [ - parseFixed('1', 18).toString(), - parseFixed('1', addresses.swETH.decimals).toString(), - ]; - await testGeneralisedJoin( - sdk, - signer, - userAddress, - testPool, - tokensIn, - amountsIn, - simulationType - ); - }); - }); + context.skip( + 'join with wETH vs ETH - where first step is a swap', + async () => { + if (!TEST_JOIN_WITH_ETH_SWAP_FIRST) return true; + + before(async () => { + testPool = addresses.swEth_bbaweth; + tokens = [addresses.WETH, addresses.swETH]; + balances = [ + parseFixed('10', addresses.WETH.decimals).toString(), + parseFixed('10', addresses.swETH.decimals).toString(), + ]; + }); + + it('should join with wETH', async () => { + const tokensIn = [addresses.WETH.address, addresses.swETH.address]; + const amountsIn = [ + parseFixed('1', addresses.WETH.decimals).toString(), + parseFixed('1', addresses.swETH.decimals).toString(), + ]; + await testGeneralisedJoin( + sdk, + signer, + userAddress, + testPool, + tokensIn, + amountsIn, + simulationType + ); + }); + + it('should join with ETH', async () => { + const tokensIn = [AddressZero, addresses.swETH.address]; + const amountsIn = [ + parseFixed('1', 18).toString(), + parseFixed('1', addresses.swETH.decimals).toString(), + ]; + await testGeneralisedJoin( + sdk, + signer, + userAddress, + testPool, + tokensIn, + amountsIn, + simulationType + ); + }); + } + ); context('join with wETH vs ETH - where first step is a join', async () => { if (!TEST_JOIN_WITH_ETH_JOIN_FIRST) return true;