From f5aa36f0f7d015d23d5d2a95c52b51ad21332025 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 31 May 2024 10:43:55 +0200 Subject: [PATCH] test: no variadic args support --- internal/mocks/action.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/mocks/action.go b/internal/mocks/action.go index dd991f73..9f609970 100644 --- a/internal/mocks/action.go +++ b/internal/mocks/action.go @@ -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) }