From d0a4010167412e93994b6b5188823be8511615de Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 6 Jul 2023 05:25:20 +0800 Subject: [PATCH] add missing stop relayer to avoid log after test complete (#1229) Co-authored-by: Justin Tieri <37750742+jtieri@users.noreply.github.com> --- interchaintest/path_filter_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/interchaintest/path_filter_test.go b/interchaintest/path_filter_test.go index 7889587d2..1ec706a80 100644 --- a/interchaintest/path_filter_test.go +++ b/interchaintest/path_filter_test.go @@ -89,6 +89,14 @@ func TestScenarioPathFilterAllow(t *testing.T) { gaiaUser, osmosisUser := users[0].(*cosmos.CosmosWallet), users[1].(*cosmos.CosmosWallet) r.StartRelayer(ctx, eRep, ibcPath) + t.Cleanup( + func() { + err := r.StopRelayer(ctx, eRep) + if err != nil { + t.Logf("an error occured while stopping the relayer: %s", err) + } + }, + ) // Send Transaction amountToSend := int64(1_000_000) @@ -226,6 +234,14 @@ func TestScenarioPathFilterDeny(t *testing.T) { gaiaUser, osmosisUser := users[0].(*cosmos.CosmosWallet), users[1].(*cosmos.CosmosWallet) r.StartRelayer(ctx, eRep, ibcPath) + t.Cleanup( + func() { + err := r.StopRelayer(ctx, eRep) + if err != nil { + t.Logf("an error occured while stopping the relayer: %s", err) + } + }, + ) // Send Transaction amountToSend := int64(1_000_000)