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 May 31, 2024
1 parent 4129ac3 commit 64be659
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 64be659

Please sign in to comment.