From e8063c3b7430d3e4926282ab1e5c7fe13b2ab433 Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Fri, 18 Oct 2024 14:37:33 -0500 Subject: [PATCH] Add Debug, Increase Timeout --- .../contracts/tools/__tests__/test_accountant.ts | 2 +- .../tools/__tests__/test_ntt_accountant.ts | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/wormchain/contracts/tools/__tests__/test_accountant.ts b/wormchain/contracts/tools/__tests__/test_accountant.ts index 72a4f2efe6..1c8e9ca3bd 100644 --- a/wormchain/contracts/tools/__tests__/test_accountant.ts +++ b/wormchain/contracts/tools/__tests__/test_accountant.ts @@ -30,7 +30,7 @@ import * as devnetConsts from "../devnet-consts.json"; import { parseUnits } from "ethers/lib/utils"; import { CosmWasmClient } from "@cosmjs/cosmwasm-stargate"; -jest.setTimeout(200000); +jest.setTimeout(300000); if (process.env.INIT_SIGNERS_KEYS_CSV === "undefined") { let msg = `.env is missing. run "make contracts-tools-deps" to fetch.`; diff --git a/wormchain/contracts/tools/__tests__/test_ntt_accountant.ts b/wormchain/contracts/tools/__tests__/test_ntt_accountant.ts index 9e94f63523..a70954fd9a 100644 --- a/wormchain/contracts/tools/__tests__/test_ntt_accountant.ts +++ b/wormchain/contracts/tools/__tests__/test_ntt_accountant.ts @@ -1154,6 +1154,10 @@ describe("NTT Global Accountant Tests", () => { receipt, CONTRACTS.DEVNET.bsc.core ); + + // TODO: JOEL - REMOVE + console.log('JOEL: Awaiting signed VAA #c'); + // poll until the guardian(s) witness and sign the vaa await getSignedVAAWithRetry( GUARDIAN_RPCS, @@ -1166,6 +1170,10 @@ describe("NTT Global Accountant Tests", () => { 1000, 30 ); + + // TODO: JOEL - REMOVE + console.log('JOEL: Awaiting metrics change #c'); + await waitForMetricsChange( (afterMetrics) => afterMetrics.global_accountant_events_received <= @@ -1230,6 +1238,10 @@ describe("NTT Global Accountant Tests", () => { receipt, CONTRACTS.DEVNET.bsc.core ); + + // TODO: JOEL - REMOVE + console.log('JOEL: Awaiting signed VAA #d'); + // poll until the guardian(s) witness and sign the vaa await getSignedVAAWithRetry( GUARDIAN_RPCS, @@ -1242,6 +1254,10 @@ describe("NTT Global Accountant Tests", () => { 1000, 30 ); + + // TODO: JOEL - REMOVE + console.log('JOEL: Awaiting metrics change #d'); + await waitForMetricsChange( (afterMetrics) => afterMetrics.global_accountant_events_received <=