Skip to content

Commit

Permalink
test: remove test case that is covered by parachain tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bvotteler committed Aug 24, 2023
1 parent 43fb372 commit d7ea6fc
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/integration/parachain/staging/sequential/replace.partial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,31 +151,6 @@ export const replaceTests = () => {
expect(replaceRequest.oldVault.accountId.toString()).toEqual(vault_3_id.accountId.toString());
}
}, 1000 * 30);

// disabled because flaky since switching to jest
// TODO: check how to stabilize this test
it.skip(
"should fail vault replace request if not having enough tokens",
async () => {
const interBtcAPI = new DefaultInterBtcApi(api, "regtest", vault_2, ESPLORA_BASE_PATH);
const vault_2_id = vault_2_ids[0];
const collateralCurrency = await currencyIdToMonetaryCurrency(api, vault_2_id.currencies.collateral);

// fetch tokens held by vault
const tokensInVault = await interBtcAPI.vaults.getTotalIssuedAmount();

// make sure vault does not hold enough issued tokens to request a replace
const replaceAmount = tokensInVault.mul(2);

const replacePromise = submitExtrinsic(
interBtcAPI,
interBtcAPI.replace.request(replaceAmount, collateralCurrency),
false
);

await expect(replacePromise).rejects.toBeDefined();
}
);
});

describe("check values, and request statuses", () => {
Expand Down

0 comments on commit d7ea6fc

Please sign in to comment.