Skip to content

Commit

Permalink
Fix test coverage for subscriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Richardson <[email protected]>
  • Loading branch information
awrichar committed Sep 22, 2021
1 parent f0cd139 commit a7efe1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/events/subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ func TestGetTransactionInputsTxnInfoFail(t *testing.T) {
rpc := &ethmocks.RPCClient{}
cr := &contractregistrymocks.ContractStore{}

deployMsg := contractregistry.DeployContractWithAddress{}
deployMsg := contractregistry.DeployContractWithAddress{
Contract: &messages.DeployContract{},
}
cr.On("GetABI", contractregistry.ABILocation{
ABIType: contractregistry.LocalABI,
Name: "abi1",
Expand Down Expand Up @@ -466,7 +468,9 @@ func TestGetTransactionInputsBadMethod(t *testing.T) {
rpc := &ethmocks.RPCClient{}
cr := &contractregistrymocks.ContractStore{}

deployMsg := contractregistry.DeployContractWithAddress{}
deployMsg := contractregistry.DeployContractWithAddress{
Contract: &messages.DeployContract{},
}
cr.On("GetABI", contractregistry.ABILocation{
ABIType: contractregistry.LocalABI,
Name: "abi1",
Expand Down

0 comments on commit a7efe1b

Please sign in to comment.