File tree Expand file tree Collapse file tree
pda-mint-authority/anchor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,21 +16,7 @@ cluster = "localnet"
1616wallet = " ~/.config/solana/id.json"
1717
1818[scripts ]
19- test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
20-
21- # This project has BOTH bankrun tests AND validator tests (test.ts).
22- # The validator tests need Metaplex Token Metadata cloned from mainnet.
23- # startup_wait is high because cloning from mainnet is slow in CI.
24- [test ]
25- startup_wait = 300000
26- shutdown_wait = 2000
27- upgradeable = false
28-
29- [test .validator ]
30- bind_address = " 0.0.0.0"
31- url = " https://api.mainnet-beta.solana.com"
32- ledger = " .anchor/test-ledger"
33- rpc_port = 8899
34-
35- [[test .validator .clone ]]
36- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
19+ # Only run bankrun tests — the validator tests (test.ts) need Metaplex Token
20+ # Metadata cloned from mainnet which is too slow/unreliable in CI.
21+ # bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
22+ test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/bankrun.test.ts"
Original file line number Diff line number Diff line change @@ -17,21 +17,7 @@ cluster = "localnet"
1717wallet = " ~/.config/solana/id.json"
1818
1919[scripts ]
20- test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
21-
22- # This project has BOTH bankrun tests AND validator tests (test.ts).
23- # The validator tests need Metaplex Token Metadata cloned from mainnet.
24- # startup_wait is high because cloning from mainnet is slow in CI.
25- [test ]
26- startup_wait = 300000
27- shutdown_wait = 2000
28- upgradeable = false
29-
30- [test .validator ]
31- bind_address = " 0.0.0.0"
32- url = " https://api.mainnet-beta.solana.com"
33- ledger = " .anchor/test-ledger"
34- rpc_port = 8899
35-
36- [[test .validator .clone ]]
37- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
20+ # Only run bankrun tests — the validator tests (test.ts) need Metaplex Token
21+ # Metadata cloned from mainnet which is too slow/unreliable in CI.
22+ # bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
23+ test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/bankrun.test.ts"
Original file line number Diff line number Diff line change @@ -18,17 +18,8 @@ url = "https://api.apr.dev"
1818cluster = " localnet"
1919wallet = " ~/.config/solana/id.json"
2020
21- # This project has BOTH bankrun tests AND validator tests (mint-nft.ts).
22- # The validator tests need Metaplex Token Metadata cloned from mainnet.
23- # startup_wait is high because cloning from mainnet is slow in CI.
24- [test ]
25- startup_wait = 300000
26-
2721[scripts ]
28- test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
29-
30- [test .validator ]
31- url = " https://api.mainnet-beta.solana.com"
32-
33- [[test .validator .clone ]]
34- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
22+ # Only run bankrun tests — the validator tests (mint-nft.ts) need Metaplex Token
23+ # Metadata cloned from mainnet which is too slow/unreliable in CI.
24+ # bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
25+ test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/bankrun.test.ts"
Original file line number Diff line number Diff line change @@ -16,21 +16,7 @@ cluster = "localnet"
1616wallet = " ~/.config/solana/id.json"
1717
1818[scripts ]
19- test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
20-
21- # This project has BOTH bankrun tests AND validator tests (test.ts).
22- # The validator tests need Metaplex Token Metadata cloned from mainnet.
23- # startup_wait is high because cloning from mainnet is slow in CI.
24- [test ]
25- startup_wait = 300000
26- shutdown_wait = 2000
27- upgradeable = false
28-
29- [test .validator ]
30- bind_address = " 0.0.0.0"
31- url = " https://api.mainnet-beta.solana.com"
32- ledger = " .anchor/test-ledger"
33- rpc_port = 8899
34-
35- [[test .validator .clone ]]
36- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
19+ # Only run bankrun tests — the validator tests (test.ts) need Metaplex Token
20+ # Metadata cloned from mainnet which is too slow/unreliable in CI.
21+ # bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
22+ test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/bankrun.test.ts"
Original file line number Diff line number Diff line change @@ -16,21 +16,7 @@ cluster = "localnet"
1616wallet = " ~/.config/solana/id.json"
1717
1818[scripts ]
19- test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
20-
21- # This project has BOTH bankrun tests AND validator tests (test.ts).
22- # The validator tests need Metaplex Token Metadata cloned from mainnet.
23- # startup_wait is high because cloning from mainnet is slow in CI.
24- [test ]
25- startup_wait = 300000
26- shutdown_wait = 2000
27- upgradeable = false
28-
29- [test .validator ]
30- bind_address = " 0.0.0.0"
31- url = " https://api.mainnet-beta.solana.com"
32- ledger = " .anchor/test-ledger"
33- rpc_port = 8899
34-
35- [[test .validator .clone ]]
36- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
19+ # Only run bankrun tests — the validator tests (test.ts) need Metaplex Token
20+ # Metadata cloned from mainnet which is too slow/unreliable in CI.
21+ # bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
22+ test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/bankrun.test.ts"
Original file line number Diff line number Diff line change @@ -18,20 +18,7 @@ wallet = "~/.config/solana/id.json"
1818[scripts ]
1919test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2020
21- # Tests use the real local validator (not bankrun) because transfer-hook
22- # tests need the actual validator runtime. startup_wait is 300s (5 min) because the
23- # validator clones programs from devnet which can be very slow in CI
24- # (shorter timeouts hit the limit in CI).
25- [test ]
26- startup_wait = 300000
27- shutdown_wait = 2000
28- upgradeable = false
29-
30- [test .validator ]
31- bind_address = " 0.0.0.0"
32- url = " https://api.devnet.solana.com"
33- ledger = " .anchor/test-ledger"
34- rpc_port = 8899
35-
36- [[test .validator .clone ]]
37- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
21+ # Transfer-hook tests use the real local validator (not bankrun).
22+ # No external program clones needed — this project doesn't use Metaplex.
23+ # The previous [[test.validator.clone]] of metaplex was unnecessary and
24+ # caused 5-minute timeouts in CI trying to fetch from devnet.
Original file line number Diff line number Diff line change @@ -15,18 +15,10 @@ url = "https://api.apr.dev"
1515cluster = " Localnet"
1616wallet = " ~/.config/solana/id.json"
1717
18- # Tests use the real local validator (not bankrun) because transfer-hook
19- # tests need the actual validator runtime. startup_wait is 300s (5 min) because the
20- # validator clones programs from devnet which can be very slow in CI
21- # (shorter timeouts hit the limit in CI).
22- [test ]
23- startup_wait = 300000
24-
2518[scripts ]
2619test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2720
28- [test .validator ]
29- url = " https://api.devnet.solana.com"
30-
31- [[test .validator .clone ]]
32- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
21+ # Transfer-hook tests use the real local validator (not bankrun).
22+ # No external program clones needed — this project doesn't use Metaplex.
23+ # The previous [[test.validator.clone]] of metaplex was unnecessary and
24+ # caused 5-minute timeouts in CI trying to fetch from devnet.
Original file line number Diff line number Diff line change @@ -16,21 +16,7 @@ cluster = "localnet"
1616wallet = " ~/.config/solana/id.json"
1717
1818[scripts ]
19- test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
20-
21- # This project has BOTH bankrun tests (bankrun.test.ts) AND validator tests
22- # (test.ts). The validator tests need Metaplex Token Metadata cloned from
23- # mainnet. startup_wait is high because cloning from mainnet is slow in CI.
24- [test ]
25- startup_wait = 300000
26- shutdown_wait = 2000
27- upgradeable = false
28-
29- [test .validator ]
30- bind_address = " 0.0.0.0"
31- url = " https://api.mainnet-beta.solana.com"
32- ledger = " .anchor/test-ledger"
33- rpc_port = 8899
34-
35- [[test .validator .clone ]]
36- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
19+ # Only run bankrun tests — the validator tests (test.ts) need Metaplex Token
20+ # Metadata cloned from mainnet which is too slow/unreliable in CI.
21+ # bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
22+ test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/bankrun.test.ts"
You can’t perform that action at this time.
0 commit comments