Skip to content

Commit

Permalink
test: no variadic args support
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jul 5, 2024
1 parent 01f4d4e commit f5aa36f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/mocks/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type ActionClient struct {
}

func (m *ActionClient) WaitFor(ctx context.Context, actions ...*hcloud.Action) error {
args := m.Called(ctx, actions)
// The mock library does not support variadic arguments, ignore for now
args := m.Called(ctx, mock.Anything)
return args.Error(0)
}

0 comments on commit f5aa36f

Please sign in to comment.