From 6613e99f91c5b2cdc9c545e7760432849c9efb05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Fri, 8 Mar 2024 12:08:19 +0100 Subject: [PATCH] moved the reset of the libConfing clientctx back to the validator context before waiting for some blocks. This should prevent the MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit panic: Log in goroutine after TestE2EMachineTestSuite has completed: [app] PoP broadcast tx failed: node0.info: key not found on the CI. Signed-off-by: Jürgen Eckel --- tests/e2e/machine/suite.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/e2e/machine/suite.go b/tests/e2e/machine/suite.go index c667551..d2a8cff 100644 --- a/tests/e2e/machine/suite.go +++ b/tests/e2e/machine/suite.go @@ -178,6 +178,10 @@ func (s *E2ETestSuite) TestMachineAllowanceAttestation() { msg3 := machinetypes.NewMsgAttestMachine(addr.String(), &machine) _, err = e2etestutil.BuildSignBroadcastTx(s.T(), addr, msg3) + + // reset clientCtx to validator ctx + libConfig.SetClientCtx(val.ClientCtx) + s.Require().NoError(err) // give machine attestation some time to issue the liquid asset @@ -186,9 +190,6 @@ func (s *E2ETestSuite) TestMachineAllowanceAttestation() { s.Require().NoError(s.network.WaitForNextBlock()) s.Require().NoError(s.network.WaitForNextBlock()) - // reset clientCtx to validator ctx - libConfig.SetClientCtx(val.ClientCtx) - args := []string{ pubKey, }