From e16633a972808fb121d92cde60370086b9f1e216 Mon Sep 17 00:00:00 2001 From: tnasu Date: Fri, 15 Oct 2021 14:42:31 +0900 Subject: [PATCH] fix TestBroadcastEvidence_DuplicateVoteEvidence, see https://github.com/tendermint/tendermint/pull/6678 --- rpc/client/evidence_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpc/client/evidence_test.go b/rpc/client/evidence_test.go index 8dd59af3d..c349671e1 100644 --- a/rpc/client/evidence_test.go +++ b/rpc/client/evidence_test.go @@ -114,6 +114,9 @@ func makeEvidences( } func TestBroadcastEvidence_DuplicateVoteEvidence(t *testing.T) { + ctx, cancel := context.WithCancel(context.Background()) + time.Sleep(100 * time.Millisecond) + defer cancel() var ( config = rpctest.GetConfig() chainID = config.ChainID() @@ -126,6 +129,9 @@ func TestBroadcastEvidence_DuplicateVoteEvidence(t *testing.T) { require.NoError(t, err) for i, c := range GetClients() { + res, err := c.Status(ctx) + assert.Nil(t, err) + t.Logf("%v", res) correct, fakes := makeEvidences(t, pv, chainID) t.Logf("client %d", i)