diff --git a/e2e/node/basic/trap.test.ts b/e2e/node/basic/trap.test.ts index 160d3160..d6bee77e 100644 --- a/e2e/node/basic/trap.test.ts +++ b/e2e/node/basic/trap.test.ts @@ -4,14 +4,7 @@ import util from 'util'; import exec from 'child_process'; const execAsync = util.promisify(exec.exec); -// eslint-disable-next-line prefer-const -let stdout; -try { - ({ stdout } = await execAsync('dfx canister id trap')); -} catch { - await execAsync('dfx deploy trap'); - ({ stdout } = await execAsync('dfx canister id trap')); -} +const { stdout } = await execAsync('dfx canister id trap'); export const idlFactory = ({ IDL }) => { return IDL.Service({