Skip to main content

pic

Function pic 

Source
pub fn pic() -> Pic
Expand description

Create a fresh PocketIC universe.

IMPORTANT:

  • Each call creates a new IC instance
  • WARNING: DO NOT CACHE OR SHARE Pic ACROSS TESTS
  • Reusing Pic can retain global locks and background runtime state and can make later tests hang or fail nondeterministically
  • Required to avoid PocketIC wasm chunk store exhaustion