Skip to content

Commit

Permalink
Add comments to test program
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinhora committed Jan 7, 2025
1 parent fc4eff7 commit 061ab88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/full-program-tests/pinned-actor-no-timer/main.pony
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ actor Main
end

be do_stuff(i: I32) =>
// sleep for a while so that the quiescence CNF/ACK protocol can happen
ifdef windows then
@Sleep(10)
else
@usleep(10000)
end
if i < 0 then
// set the exit code if this behavior has been run enough times
// issue 4582 identified early quiescence/termination if only pinned
// actors remained active
@pony_exitcode(100)
else
do_stuff(i - 1)
Expand Down

0 comments on commit 061ab88

Please sign in to comment.