From a559435d8646013d35510b223031863ad44f5b83 Mon Sep 17 00:00:00 2001 From: Kai Peacock Date: Tue, 15 Oct 2024 14:10:38 -0700 Subject: [PATCH] chore: reverts change to trap test --- e2e/node/basic/trap.test.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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({