Ver código fonte

logging-errors-for-testing

Vincent Brunet 1 ano atrás
pai
commit
7b4f178ad8
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      tests/bolt.ts

+ 5 - 1
tests/bolt.ts

@@ -523,7 +523,11 @@ describe("bolt", () => {
       reimbursement: provider.wallet.publicKey,
     });
     const tx = new anchor.web3.Transaction().add(delegateIx);
-    await provider.sendAndConfirm(tx);
+    try {
+      await provider.sendAndConfirm(tx);
+    } catch (error) {
+      console.log("error", error);
+    }
     const acc = await provider.connection.getAccountInfo(
       componentPositionEntity1Pda
     );