hadronous / pic-js

An Internet Computer Protocol canister testing library for TypeScript and JavaScript.
https://hadronous.github.io/pic-js/
Apache License 2.0
11 stars 6 forks source link

Start / Stop canister #23

Closed infu closed 9 months ago

infu commented 9 months ago

Seems start and stop canister is missing. It would be great for various scenarios - when we want to check how a multi-canister setup will respond when some of the canisters stop.

Would this workaround do it ? Using updateCanisterSettings to put freezing threshold higher than the cycle balance to stop and then moving it down to start?

nathanosdev commented 9 months ago

Adding support for stop and start is pretty trivial, I should be able to add it within the next days. If you need it sooner, feel free to make a PR.

nathanosdev commented 9 months ago

This is released now in v0.4.0.

Docs:

Feel free to open a new ticket if you need anything else.