Skip to content

Commit

Permalink
fix test again
Browse files Browse the repository at this point in the history
  • Loading branch information
madergaser committed May 28, 2024
1 parent 9561c58 commit 3c769af
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/mmm-fulfill-shared-escrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,6 @@ describe('shared-escrow mmm-fulfill-linear', () => {
};
const seller = Keypair.generate();
const nftCreator = Keypair.generate();
await airdrop(connection, nftCreator.publicKey, 10);
const rulesRes = await createDefaultTokenAuthorizationRules(
connection,
nftCreator,
'test',
);
// generate new wallet and keypair to simuluate closing behavior when not enough rent
// and when cap is reached
const newWallet = new anchor.Wallet(Keypair.generate());
Expand All @@ -443,6 +437,15 @@ describe('shared-escrow mmm-fulfill-linear', () => {
commitment: 'processed',
}),
) as anchor.Program<Mmm>;
await Promise.all([
airdrop(connection, newWallet.publicKey, 10),
airdrop(connection, nftCreator.publicKey, 10),
]);
const rulesRes = await createDefaultTokenAuthorizationRules(
connection,
nftCreator,
'test',
);
const defaultRules = rulesRes.ruleSetAddress;
const buyerSharedEscrow = getM2BuyerSharedEscrow(newWallet.publicKey).key;
const extraLamports = 10;
Expand Down

0 comments on commit 3c769af

Please sign in to comment.