Skip to content

Commit

Permalink
Merge branch 'mraszyk/pocket-ic-tick-docs' into 'master'
Browse files Browse the repository at this point in the history
chore: update tick docs for PocketIc library

This MR updates the docs for the `tick` command in the PocketIc library mentioning that it might be necessary to "tick" multiple times. 

See merge request dfinity-lab/public/ic!17718
  • Loading branch information
mraszyk committed Feb 16, 2024
2 parents c83eef5 + 2536cb6 commit 6111d5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/pocket-ic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ impl PocketIc {
}

/// Make the IC produce and progress by one block.
/// Note that multiple ticks might be necessary to observe
/// an expected effect, e.g., if the effect depends on
/// inter-canister calls or heartbeats.
#[instrument(skip(self), fields(instance_id=self.instance_id))]
pub fn tick(&self) {
let endpoint = "update/tick";
Expand Down

0 comments on commit 6111d5a

Please sign in to comment.