Skip to content

Commit

Permalink
fix(tests): remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
ogmedia committed Aug 18, 2022
1 parent 4ed4717 commit 28d9dbd
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions tests/squads-mpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,39 +422,6 @@ describe("Multisig and Programs", () => {
expect((msState.keys as any[]).length).to.equal(numberOfMembersTotal + 2);
});

it(`Add a new member and change threshold but creator is not executor - MS: ${msPDA.toBase58()}`, async () => {
// 1 get the instruction to create a transaction
// 2 get the instruction to add a member
// 3 get the instruction to 'activate' the tx
// 4 send over the transaction to the ms program with 1 - 3
// use 0 as authority index
const newMember = anchor.web3.Keypair.generate().publicKey;
const txBuilder = await squads.getTransactionBuilder(msPDA, 0);
const [txInstructions, txPDA] = await (
await txBuilder.withAddMemberAndChangeThreshold(newMember, 2)
).getInstructions();
const activateIx = await squads.buildActivateTransaction(msPDA, txPDA);

let addMemberTx = await createBlankTransaction(
squads.connection,
creator.publicKey
);
addMemberTx.add(...txInstructions);
addMemberTx.add(activateIx);

await provider.sendAndConfirm(addMemberTx);

await squads.approveTransaction(txPDA);

let txState = await squads.getTransaction(txPDA);
expect(txState.status).has.property("executeReady");

await squads.executeTransaction(txPDA);

const msState = await squads.getMultisig(msPDA);
expect((msState.keys as any[]).length).to.equal(numberOfMembersTotal + 2);
});

it(`Transaction instruction failure - MS: ${msPDA.toBase58()}`, async () => {
// create authority to use (Vault, index 1)
const authorityPDA = squads.getAuthorityPDA(msPDA, 1);
Expand Down

0 comments on commit 28d9dbd

Please sign in to comment.