Skip to content

Commit 840888e

Browse files
authored
[SDK] Skip flaky tests (#8942)
1 parent 3443758 commit 840888e

10 files changed

Lines changed: 385 additions & 386 deletions

File tree

‎packages/thirdweb/src/contract/actions/resolve-abi.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ it("should resolve abi from contract api", async () => {
4343
expect(abi).toMatchObject(DOODLES_ABI);
4444
});
4545

46-
it.runIf(process.env.TW_SECRET_KEY)(
47-
"should resolve abi from bytecode",
48-
async () => {
46+
it.runIf(process.env.TW_SECRET_KEY)
47+
.skip("should resolve abi from bytecode", async () => {
4948
// we do this so we don't hit any PRIOR cache
5049
const DOODLES_CONTRACT_CLONE = { ...DOODLES_CONTRACT };
5150
const abi = await resolveAbiFromBytecode(DOODLES_CONTRACT_CLONE);
5251
expect(abi).toMatchObject(DOODLES_ABI);
53-
},
54-
);
52+
});
5553

5654
it("should throw error if contract bytecode is 0x", async () => {
5755
const wrongContract = getContract({

‎packages/thirdweb/src/extensions/airdrop/write/airdropERC721WithSignature.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import {
2626

2727
// skip this test suite if there is no secret key available to test with
2828
// TODO: remove reliance on secret key during unit tests entirely
29-
describe.runIf(process.env.TW_SECRET_KEY)(
30-
"generateAirdropSignatureERC721",
31-
() => {
29+
describe
30+
.runIf(process.env.TW_SECRET_KEY)
31+
.skip("generateAirdropSignatureERC721", () => {
3232
let airdropContract: ThirdwebContract;
3333
let erc721TokenContract: ThirdwebContract;
3434

@@ -158,5 +158,4 @@ describe.runIf(process.env.TW_SECRET_KEY)(
158158

159159
expect(transactionHash.length).toBe(66);
160160
});
161-
},
162-
);
161+
});

‎packages/thirdweb/src/extensions/erc1155/drop1155.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { getNFT } from "./read/getNFT.js";
3131
import { isGetNFTsSupported } from "./read/getNFTs.js";
3232
import { lazyMint } from "./write/lazyMint.js";
3333

34-
describe.runIf(process.env.TW_SECRET_KEY)(
34+
describe.runIf(process.env.TW_SECRET_KEY).skip(
3535
"DropERC1155",
3636
{
3737
retry: 0,

0 commit comments

Comments
 (0)