Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vito-kovalione committed Dec 18, 2024
1 parent 03a0ff8 commit bed1d38
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
32 changes: 16 additions & 16 deletions tests/integration/tests/rolesPermissions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountantOne,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMintOne,
mint: sharesMintOne,
})
.signers([accountantAdmin])
.rpc();
Expand All @@ -269,7 +269,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountantOne,
signer: accountantAdmin.publicKey,
underlyingMint: underlyingMint,
mint: underlyingMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -912,7 +912,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -1260,7 +1260,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -1423,7 +1423,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -2061,7 +2061,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -2409,7 +2409,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -2565,7 +2565,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -3374,7 +3374,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -3537,7 +3537,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -4218,7 +4218,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -4564,7 +4564,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -4692,7 +4692,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -5328,7 +5328,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -5680,7 +5680,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down Expand Up @@ -5827,7 +5827,7 @@ describe("Roles and Permissions Tests", () => {
.accounts({
accountant: accountant,
signer: accountantAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([accountantAdmin])
.rpc();
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/tests/vaultUserOperations/deposit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ describe("Vault User Operations: Deposit Tests", () => {
.accounts({
accountant: accountantOne,
signer: generalAdmin.publicKey,
underlyingMint: sharesMintOne,
mint: sharesMintOne,
})
.signers([generalAdmin])
.rpc();
Expand All @@ -302,7 +302,7 @@ describe("Vault User Operations: Deposit Tests", () => {
.accounts({
accountant: accountantOne,
signer: generalAdmin.publicKey,
underlyingMint: underlyingMint,
mint: underlyingMint,
})
.signers([generalAdmin])
.rpc();
Expand Down Expand Up @@ -820,7 +820,7 @@ describe("Vault User Operations: Deposit Tests", () => {
.accounts({
accountant: accountant,
signer: generalAdmin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([generalAdmin])
.rpc();
Expand Down
8 changes: 5 additions & 3 deletions tests/integration/vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe("tokenized_vault", () => {

console.log("Accountant inited");

await accountantProgram.methods.setFee(new BN(500))
await accountantProgram.methods.setPerformanceFee(new BN(500))
.accounts({
accountant: accountant,
signer: admin.publicKey,
Expand Down Expand Up @@ -382,7 +382,7 @@ describe("tokenized_vault", () => {
.accounts({
accountant: accountant,
signer: admin.publicKey,
underlyingMint: sharesMint,
mint: sharesMint,
})
.signers([admin])
.rpc();
Expand All @@ -391,7 +391,7 @@ describe("tokenized_vault", () => {
.accounts({
accountant: accountant,
signer: admin.publicKey,
underlyingMint: underlyingMint,
mint: underlyingMint,
})
.signers([admin])
.rpc();
Expand Down Expand Up @@ -540,6 +540,7 @@ describe("tokenized_vault", () => {
.accounts({
vault,
underlyingMint,
accountant,
// strategy,
user: user.publicKey,
userTokenAccount,
Expand Down Expand Up @@ -1105,6 +1106,7 @@ describe("tokenized_vault", () => {
await vaultProgram.methods.deposit(new BN(100))
.accounts({
vault,
accountant,
underlyingMint,
user: user.publicKey,
userTokenAccount,
Expand Down

0 comments on commit bed1d38

Please sign in to comment.