Skip to content

Commit

Permalink
Merge branch 'master' into luc/incremental-gc
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-blaeser committed Jan 27, 2023
2 parents a507eff + 15d968b commit 58e58ca
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
5 changes: 1 addition & 4 deletions test/run-drun/ok/timer-cancel.drun-run.ok
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101
ingress Completed: Reply: 0x4449444c0000
debug.print: TICK!
debug.print: TICK!
debug.print: TICK!
debug.print: CANCELLING!
debug.print: {counter = 4}
debug.print: {attempts = 200; counter = 4}
ingress Completed: Reply: 0x4449444c0000
5 changes: 1 addition & 4 deletions test/run-drun/ok/timer-cancel.ic-ref-run.ok
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
=> update install_code(record {arg = blob ""; kca_xin = blob "\00asm\01\00\00\00\0...
<= replied: ()
=> update go()
debug.print: TICK!
debug.print: TICK!
debug.print: TICK!
debug.print: CANCELLING!
debug.print: {counter = 4}
debug.print: {attempts = 200; counter = 4}
<= replied: ()
1 change: 0 additions & 1 deletion test/run-drun/ok/timer-initial.drun-run.ok
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101
debug.print: INITIAL!
ingress Completed: Reply: 0x4449444c0000
debug.print: {count = 1}
ingress Completed: Reply: 0x4449444c0000
1 change: 0 additions & 1 deletion test/run-drun/ok/timer-initial.ic-ref-run.ok
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
=> update install_code(record {arg = blob ""; kca_xin = blob "\00asm\01\00\00\00\0...
<= replied: ()
=> update go()
debug.print: INITIAL!
debug.print: {count = 1}
<= replied: ()
3 changes: 1 addition & 2 deletions test/run-drun/timer-cancel.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ actor {
var t : Nat = 0;

private func remind() : async () {
debugPrint("TICK!");
counter += 1;
if (counter == 3) {
cancel();
Expand Down Expand Up @@ -37,7 +36,7 @@ actor {
if (attempts >= 10)
counter += 1;
};
debugPrint(debug_show {counter});
debugPrint(debug_show {attempts; counter});
};
};

Expand Down
1 change: 0 additions & 1 deletion test/run-drun/timer-initial.mo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ actor {
system func timer(setGlobalTimer : Nat64 -> ()) : async () {
count += 1;
setGlobalTimer 0; // FIXME: this shouldn't be necessary for recent `drun`, but we might run an outdated version...
debugPrint "INITIAL!";
};

let raw_rand = (actor "aaaaa-aa" : actor { raw_rand : () -> async Blob }).raw_rand;
Expand Down

0 comments on commit 58e58ca

Please sign in to comment.