Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"homepage": "",
"owner": "dfinity",
"repo": "ic-hs",
"rev": "0f87c27013c46454b4d8898e5893a8d64a01627d",
"sha256": "0vn6w86fgmy40nyf9zpn97xfhxnkifhfsa4hb6pshvyw3i3j8r3f",
"rev": "20e23e1ab496cbd2bc3b687a71e381edc8299da1",
"sha256": "1cmync8lqfi6nfmvdga091cdns1y32l8ypmbvlb5l850zy8l3h1w",
"type": "tarball",
"url": "https://github.com/dfinity/ic-hs/archive/0f87c27013c46454b4d8898e5893a8d64a01627d.tar.gz",
"url": "https://github.com/dfinity/ic-hs/archive/20e23e1ab496cbd2bc3b687a71e381edc8299da1.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"libtommath": {
Expand Down
2 changes: 1 addition & 1 deletion test/run-drun/heartbeat.mo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ actor {
while (count < max) {
ignore await raw_rand(); // yield to scheduler
attempts += 1;
if (attempts >= 50 and count == 0)
if (attempts >= 200 and count == 0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yuck, that's precisely the kind of issues I was worried about with timer-based heartbeats. It's an IC simulation, we should be able to control the scheduling independent of walltime! (Also pinging @mraszyk)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, a synthetic clock would be useful.

throw Prim.error("he's dead Jim");
};
Prim.debugPrint(debug_show {count});
Expand Down
3 changes: 2 additions & 1 deletion test/run-drun/ok/heartbeat.ic-ref-run.ok
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
=> update install_code(record {arg = blob ""; kca_xin = blob "\00asm\01\00\00\00\0...
<= replied: ()
=> update go()
<= rejected (RC_CANISTER_REJECT): he's dead Jim
debug.print: {count = 10}
<= replied: ()