From 35fbaa69a1e9177cb7a0a8a2a755bcbda76fc162 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Wed, 5 Jul 2023 20:58:55 +0800 Subject: [PATCH] add missing stop relayer to avoid log after test complete --- 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)