Skip to content

Commit 8f0fd09

Browse files
committed
Enable alloc feature for tests
1 parent 43dd144 commit 8f0fd09

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
@@ -32,4 +32,5 @@ solana-program-error = { workspace = true }
3232
solana-define-syscall = { workspace = true }
3333

3434
[dev-dependencies]
35+
pinocchio = { path = ".", features = ["alloc"] }
3536
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)