Skip to content

Commit e92e622

Browse files
committed
Enable alloc feature for tests
1 parent 18976c6 commit e92e622

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/pinocchio/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ solana-program-error = { workspace = true }
3131
solana-define-syscall = { workspace = true }
3232

3333
[dev-dependencies]
34+
pinocchio = { path = ".", features = ["alloc"] }
3435
five8_const = { workspace = true }

sdk/pinocchio/src/sysvars/slot_hashes/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ fn test_from_account_info_constructor() {
459459
/// `SlotHashes` getters to make sure the view itself works. We do not verify
460460
/// that the syscall populated real on-chain bytes, as doing so requires an
461461
/// environment outside the scope of host `cargo test`.
462-
#[cfg(feature = "alloc")]
463462
#[test]
464463
fn test_fetch_allocates_buffer_host() {
465464
const START_SLOT: u64 = 500;

0 commit comments

Comments
 (0)