diff --git a/examples/bitcoin/test/pretest.ts b/examples/bitcoin/test/pretest.ts index 18853b2ee6..320939789e 100644 --- a/examples/bitcoin/test/pretest.ts +++ b/examples/bitcoin/test/pretest.ts @@ -3,6 +3,10 @@ import { execSync } from 'child_process'; async function pretest() { await new Promise((resolve) => setTimeout(resolve, 5000)); + execSync(`rm -rf .bitcoin/regtest`, { + stdio: 'inherit' + }); + execSync(`dfx canister uninstall-code bitcoin || true`, { stdio: 'inherit' });