Skip to content

Commit

Permalink
fix: skipping specs with disabled pools
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Aug 31, 2023
1 parent f85e4b4 commit eaf3cc1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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%
Expand Down Expand Up @@ -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%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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([
{
Expand All @@ -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([
{
Expand Down
95 changes: 49 additions & 46 deletions balancer-js/src/modules/joins/joins.module.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eaf3cc1

Please sign in to comment.