Skip to content

Commit

Permalink
add some commentary, increase stable memory tests to 64 bit 96 GiB size
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Oct 17, 2023
1 parent 4dd3fde commit 0c70ee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/stable_memory/test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Test } from 'azle/test';
import { _SERVICE } from './dfx_generated/stable_memory/stable_memory.did';
import { ActorSubclass } from '@dfinity/agent';

const PAGE_SIZE = 65_536;
const MAX_STABLE_MEM_PAGES = 65_536;
const MAX_STABLE64_MEM_PAGES = 1_048_576n;
const PAGE_SIZE = 65_536; // This should currently remain constant
const MAX_STABLE_MEM_PAGES = 65_536; // This will always remain constant
const MAX_STABLE64_MEM_PAGES = 1_572_864n; // (# Gib * 2^30) / PAGE_SIZE
const STABLE_BYTES_SIZE = 655_360;

export function getTests(
Expand Down

0 comments on commit 0c70ee5

Please sign in to comment.