Skip to content

Commit

Permalink
add GetFunc in mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilagadze committed Jan 10, 2024
1 parent 5665165 commit e684e87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metamorph/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ func TestSendStatusForTransaction(t *testing.T) {
wg := &sync.WaitGroup{}
wg.Add(tc.expectedUpdateStatusCalls)
metamorphStore := &MetamorphStoreMock{
GetFunc: func(ctx context.Context, key []byte) (*store.StoreData, error) {
return &store.StoreData{Hash: testdata.TX2Hash}, nil
},
UpdateStatusFunc: func(ctx context.Context, hash *chainhash.Hash, status metamorph_api.Status, rejectReason string) error {
require.Equal(t, tc.txResponseHash, hash)
wg.Done()
Expand Down

0 comments on commit e684e87

Please sign in to comment.