Skip to content

Commit 3ee6e43

Browse files
committed
fix: fix 9 remaining CI failures in token projects
Anchor test failures (8 projects): - Remove 'import { describe, it } from "node:test"' from 7 bankrun test files. These tests run via ts-mocha which provides describe/it globally. Importing from node:test creates a conflict where mocha can't see the test registrations. - Increase startup_wait from 5000ms to 25000ms in 9 Anchor.toml files. The default 5s is too short for CI where the test validator takes longer to start due to shared compute. Native build failure (1 project): - tokens/escrow/native: blake3 1.8.3 requires Rust edition 2024 which the Cargo bundled with solana-program 1.18.17's platform-tools doesn't support. Added Cargo.lock pinning blake3 to 1.5.5 (last edition-2021- compatible version).
1 parent 0a20794 commit 3ee6e43

35 files changed

Lines changed: 509 additions & 493 deletions

File tree

tokens/create-token/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ wallet = "~/.config/solana/id.json"
1919
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2020

2121
[test]
22-
startup_wait = 5000
22+
startup_wait = 25000
2323
shutdown_wait = 2000
2424
upgradeable = false
2525

tokens/create-token/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"mocha": "^9.0.3",
1616
"solana-bankrun": "^0.3.0",
1717
"ts-mocha": "^10.0.0",
18-
"typescript": "^4.3.5",
18+
"typescript": "^5.0.0",
1919
"zx": "^8.1.4"
2020
}
2121
}

tokens/create-token/anchor/pnpm-lock.yaml

Lines changed: 33 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tokens/create-token/anchor/tests/bankrun.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "node:test";
21
import * as anchor from "@coral-xyz/anchor";
32
import { Keypair, PublicKey } from "@solana/web3.js";
43
import { BankrunProvider } from "anchor-bankrun";

tokens/escrow/native/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ borsh = "1.5.1"
88
solana-program = "=1.18.17"
99
spl-token = { version = "4.0.0", features = [ "no-entrypoint" ] }
1010
spl-associated-token-account = { version = "3.0.4", features = [ "no-entrypoint" ] }
11-
thiserror="1.0.0"
11+
thiserror = "1.0.0"
1212

1313
[lib]
1414
crate-type = ["cdylib", "lib"]

tokens/nft-minter/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ wallet = "~/.config/solana/id.json"
2020
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2121

2222
[test]
23-
startup_wait = 5000
23+
startup_wait = 25000
2424
shutdown_wait = 2000
2525
upgradeable = false
2626

tokens/nft-minter/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"mocha": "^9.0.3",
1515
"solana-bankrun": "^0.3.0",
1616
"ts-mocha": "^10.0.0",
17-
"typescript": "^4.3.5",
17+
"typescript": "^5.0.0",
1818
"zx": "^8.1.4"
1919
}
2020
}

0 commit comments

Comments
 (0)