From 82447f39f6435dda31f6d9ff351e88cac8d550c0 Mon Sep 17 00:00:00 2001 From: anilhelvaci Date: Sun, 8 Dec 2024 18:08:38 +0300 Subject: [PATCH] fix(z:acceptance): fix flakey `z:acceptance/vaults.test.js` closes: #10599 fix: remove TODO comment fix: format fix --- .../proposals/z:acceptance/vaults.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/a3p-integration/proposals/z:acceptance/vaults.test.js b/a3p-integration/proposals/z:acceptance/vaults.test.js index bb8d9a40cb5..62086e7ad68 100644 --- a/a3p-integration/proposals/z:acceptance/vaults.test.js +++ b/a3p-integration/proposals/z:acceptance/vaults.test.js @@ -226,8 +226,7 @@ test.serial('user cannot open a vault above debt limit', async t => { ); }); -// TODO #10599. marked as `skip` since several flakes were observed -test.skip('user can open a vault under debt limit', async t => { +test.serial('user can open a vault under debt limit', async t => { const istBalanceBefore = await getISTBalance(GOV1ADDR); const activeVaultsBefore = await listVaults(GOV1ADDR, walletUtils); @@ -241,11 +240,12 @@ test.skip('user can open a vault under debt limit', async t => { const istBalanceAfter = await getISTBalance(GOV1ADDR); const activeVaultsAfter = await listVaults(GOV1ADDR, walletUtils); - t.is( - istBalanceBefore + Number(mint), - istBalanceAfter, - 'The IST balance should increase by the minted amount', + await tryISTBalances( + t, + scale6(istBalanceAfter), + scale6(istBalanceBefore + Number(mint)), ); + t.is( activeVaultsAfter.length, activeVaultsBefore.length + 1,