From a7efe1bc99e37dbb17118cafd15e4b039e6a607e Mon Sep 17 00:00:00 2001 From: Andrew Richardson Date: Wed, 22 Sep 2021 14:24:13 -0400 Subject: [PATCH] Fix test coverage for subscriptions Signed-off-by: Andrew Richardson --- internal/events/subscription_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/events/subscription_test.go b/internal/events/subscription_test.go index d10a235b..8b5f7427 100644 --- a/internal/events/subscription_test.go +++ b/internal/events/subscription_test.go @@ -428,7 +428,9 @@ func TestGetTransactionInputsTxnInfoFail(t *testing.T) { rpc := ðmocks.RPCClient{} cr := &contractregistrymocks.ContractStore{} - deployMsg := contractregistry.DeployContractWithAddress{} + deployMsg := contractregistry.DeployContractWithAddress{ + Contract: &messages.DeployContract{}, + } cr.On("GetABI", contractregistry.ABILocation{ ABIType: contractregistry.LocalABI, Name: "abi1", @@ -466,7 +468,9 @@ func TestGetTransactionInputsBadMethod(t *testing.T) { rpc := ðmocks.RPCClient{} cr := &contractregistrymocks.ContractStore{} - deployMsg := contractregistry.DeployContractWithAddress{} + deployMsg := contractregistry.DeployContractWithAddress{ + Contract: &messages.DeployContract{}, + } cr.On("GetABI", contractregistry.ABILocation{ ABIType: contractregistry.LocalABI, Name: "abi1",