Skip to content

Commit

Permalink
Merge pull request #2384 from demergent-labs/dependabot/cargo/rquickj…
Browse files Browse the repository at this point in the history
…s-0.8.1

deps: bump rquickjs from 0.6.2 to 0.8.1
  • Loading branch information
lastmjs authored Dec 31, 2024
2 parents b046c7a + 49aebda commit 697a8a9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 36 deletions.
43 changes: 9 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified canister_templates/stable.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/stable/test/property/ic_api/chunk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function sum(loops: number, shouldChunk: boolean): Promise<void> {
for (let i = 0; i < loops; i++) {
_sum += (i % 100) * (i % 100);

if (shouldChunk && i % 15_000_000 === 0) {
if (shouldChunk && i % 14_000_000 === 0) {
await chunk();
}
}
Expand Down
3 changes: 3 additions & 0 deletions examples/stable/test/property/ic_api/chunk/test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ export function getTests(): Test {
);
});

// TODO this test will simply hang if it fails because timers don't throw any errors that we can catch
// TODO we would need to use the canister logs somehow to check if the timer has hit its instruction limit
// TODO but see this issue: https://forum.dfinity.org/t/no-instruction-limit-hit-canister-logs-within-timer/39518
it('should not hit the instruction limit with chunking in a timer', async () => {
const actor = await getCanisterActor<Actor>('canister');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ic-cdk-macros = "0.17.1"
ic-cdk-timers = "0.11.0"
ic-stable-structures = "0.6.7"
ic-wasi-polyfill = "0.6.4"
rquickjs = { version = "0.6.2", features = ["array-buffer", "bindgen"] }
rquickjs = { version = "0.8.1", features = ["array-buffer", "bindgen"] }
scopeguard = "1.2.0"
serde = "1.0.217"
serde_json = "1.0.134"
Expand Down

0 comments on commit 697a8a9

Please sign in to comment.