Skip to content

Commit

Permalink
Deflake create global test (#149)
Browse files Browse the repository at this point in the history
* deflake create global test

* double airdrop
  • Loading branch information
brittcyr authored Oct 7, 2024
1 parent 1703e14 commit d8d316a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/ts/tests/createGlobal.ts
Original file line number Diff line number Diff line change
@@ -16,8 +16,9 @@ async function testCreateGlobal(): Promise<void> {
const payerKeypair: Keypair = Keypair.generate();
// Get SOL for rent.
await airdropSol(connection, payerKeypair.publicKey);
await airdropSol(connection, payerKeypair.publicKey);

await new Promise((f) => setTimeout(f, 1_000));
await new Promise((f) => setTimeout(f, 5_000));
const tokenMint: PublicKey = await createMint(
connection,
payerKeypair,
@@ -28,7 +29,7 @@ async function testCreateGlobal(): Promise<void> {
console.log(
`Created tokenMint ${tokenMint}, global will be at ${getGlobalAddress(tokenMint)}`,
);
await new Promise((f) => setTimeout(f, 1_000));
await new Promise((f) => setTimeout(f, 5_000));
await createGlobal(connection, payerKeypair, tokenMint);
await new Promise((f) => setTimeout(f, 1_000));

0 comments on commit d8d316a

Please sign in to comment.