Skip to content

Commit 0d061e3

Browse files
committed
tests
1 parent f666840 commit 0d061e3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

rs/backend/src/state/partitions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! This code also stores virtual memory IDs and other memory functions.
77
use core::borrow::Borrow;
88
use ic_cdk::api::trap;
9-
use ic_cdk::stable::WASM_PAGE_SIZE_IN_BYTES;
9+
const WASM_PAGE_SIZE_IN_BYTES: u64 = 65536;
1010
use ic_stable_structures::memory_manager::{MemoryId, MemoryManager, VirtualMemory};
1111
use ic_stable_structures::{DefaultMemoryImpl, Memory};
1212
use strum::IntoEnumIterator;

rs/backend/src/state/partitions/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Tests for stable memory layout code.
22
use super::*;
3-
use ic_cdk::api::stable::WASM_PAGE_SIZE_IN_BYTES;
3+
use super::WASM_PAGE_SIZE_IN_BYTES;
44
use pretty_assertions::assert_eq;
55
use std::rc::Rc;
66

rs/backend/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use core::arch::wasm32::memory_size as wasm_memory_size;
1010
#[cfg(target_arch = "wasm32")]
1111
use ic_cdk::stable::stable_size;
1212
#[cfg(target_arch = "wasm32")]
13-
use ic_cdk::stable::WASM_PAGE_SIZE_IN_BYTES;
13+
const WASM_PAGE_SIZE_IN_BYTES: u64 = 65536;
1414
const GIBIBYTE: u64 = 1 << 30;
1515

1616
/// Returns basic stats for frequent monitoring.

0 commit comments

Comments
 (0)