Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored and m-kus committed Nov 2, 2020
1 parent 947f5eb commit 028dc29
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions internal/parsers/operations/operation_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ func TestGroup_Parse(t *testing.T) {
defer ctrlScriptSaver.Finish()
scriptSaver := contract.NewMockScriptSaver(ctrlScriptSaver)

scriptSaver.
EXPECT().
Save(gomock.Any(), gomock.Any()).
Return(nil).AnyTimes()

es.
EXPECT().
GetTZIPWithViews().
Return(make([]models.TZIP, 0), nil).
AnyTimes()

tests := []struct {
name string
ParseParams *ParseParams
Expand Down Expand Up @@ -440,11 +451,6 @@ func TestGroup_Parse(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
scriptSaver.
EXPECT().
Save(gomock.Any(), gomock.Any()).
Return(nil).AnyTimes()

metadata := &models.Metadata{ID: tt.address}
es.
EXPECT().
Expand Down

0 comments on commit 028dc29

Please sign in to comment.