From 7c105dbacffe1a4631e473e32ff8c34d1d60095b Mon Sep 17 00:00:00 2001 From: William Banfield Date: Wed, 28 Jul 2021 11:42:19 -0400 Subject: [PATCH] observe panic test fix --- internal/mempool/v1/reactor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/mempool/v1/reactor_test.go b/internal/mempool/v1/reactor_test.go index d28c9224b..c5f6a1146 100644 --- a/internal/mempool/v1/reactor_test.go +++ b/internal/mempool/v1/reactor_test.go @@ -106,7 +106,7 @@ func TestReactorBroadcastDoesNotPanic(t *testing.T) { numNodes := 2 rts := setupReactors(t, numNodes, 0) - panicHandler := func(r interface{}) { + observePanic := func(r interface{}) { t.Fatalf("panic detected in reactor") } @@ -116,8 +116,8 @@ func TestReactorBroadcastDoesNotPanic(t *testing.T) { primaryMempool := primaryReactor.mempool secondaryReactor := rts.reactors[secondary] - primaryReactor.panicHandler = panicHandler - secondaryReactor.panicHandler = panicHandler + primaryReactor.observePanic = observePanic + secondaryReactor.observePanic = observePanic firstTx := &WrappedTx{} primaryMempool.insertTx(firstTx)