Skip to content

Commit

Permalink
chore: Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasia committed Dec 3, 2024
1 parent 2126ec6 commit 90d6e16
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/sdk/test/resource/test-local.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ owner = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
operator = "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
# Dev/Anvil Wallet, Account[2]
custodian = "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
# Dev/Anvil Wallet, Account[3]
treasury = "0x90F79bf6EB2c4f870365E785982E1f101E93b906"
# Dev/Anvil Wallet, Account[4]
activity_reward = "0xcabE80b332Aa9d900f5e32DF51cb0Bc5b276c556"
## CBL Staking Vault address - Anvil
vault_cbl_staking="0x0165878A594ca255338adfa4d48449f69242Eb8F"

Expand Down
8 changes: 3 additions & 5 deletions packages/sdk/test/src/liquid-vault.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ERC20__factory, LiquidContinuousMultiTokenVault__factory } from '@credbull/contracts';
import { expect, test } from '@playwright/test';
import {BigNumber, type BigNumberish, type CallOverrides, ethers} from 'ethers';
import { BigNumber, ethers } from 'ethers';

import { TestSigners } from './utils/test-signer';

Expand Down Expand Up @@ -58,8 +58,8 @@ test.describe.skip('Test LiquidContinuousMultiTokenVault ethers operations', ()
const redeemPeriod = BigNumber.from(30).toNumber(); // redeemPeriod and requestId are equal

const liquidVault = LiquidContinuousMultiTokenVault__factory.connect(
VAULT_PROXY_CONTRACT_ADDRESS,
user.getDelegate(),
VAULT_PROXY_CONTRACT_ADDRESS,
user.getDelegate(),
);
const userAddress = await user.getAddress();

Expand Down Expand Up @@ -98,6 +98,4 @@ test.describe.skip('Test LiquidContinuousMultiTokenVault ethers operations', ()
expect((await liquidVault.unlockRequestAmount(userAddress, redeemPeriod)).toNumber()).toEqual(0);
}
});


});
2 changes: 1 addition & 1 deletion packages/sdk/test/src/staking/vault-deposit-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ export class VaultDepositApp {

return result;
}
}
}
1 change: 0 additions & 1 deletion packages/sdk/test/src/staking/vault-deposit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const TEST_VAULT_DEPOSIT_50_FILENAME = 'TEST-vault-deposit-50.json';
export const TEST_VAULT_DEPOSIT_1000_FILENAME = 'TEST-vault-deposit-1000.json';

test.describe('Test Vault Deposit for all', () => {

test.skip('Load Test Deposit 1000', async () => {
test.setTimeout(3600000); // Set timeout to 1 hour (3,600,000 ms) - 1000 would take an hour on Arb!
const vaultDepositApp = new VaultDepositApp();
Expand Down

0 comments on commit 90d6e16

Please sign in to comment.