From a1ab5072907bedae9f196d473a0566ccb61c8e3f Mon Sep 17 00:00:00 2001 From: guangwu Date: Wed, 25 Oct 2023 16:13:53 +0800 Subject: [PATCH] chore: pkg import only once (#1406) Signed-off-by: guoguangwu --- plugin/executor_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/executor_test.go b/plugin/executor_test.go index b0cfc5d08..a6cc4a092 100644 --- a/plugin/executor_test.go +++ b/plugin/executor_test.go @@ -6,14 +6,13 @@ import ( "github.com/stretchr/testify/assert" - "github.com/distribworks/dkron/v3/plugin/types" dktypes "github.com/distribworks/dkron/v3/plugin/types" grpc "google.golang.org/grpc" ) type MockedExecutor struct{} -func (m *MockedExecutor) Execute(ctx context.Context, in *types.ExecuteRequest, opts ...grpc.CallOption) (*types.ExecuteResponse, error) { +func (m *MockedExecutor) Execute(ctx context.Context, in *dktypes.ExecuteRequest, opts ...grpc.CallOption) (*dktypes.ExecuteResponse, error) { resp := &dktypes.ExecuteResponse{} return resp, nil }