Skip to content

Commit

Permalink
chore: pkg import only once (#1406)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
  • Loading branch information
testwill committed Oct 25, 2023
1 parent b71134b commit a1ab507
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a1ab507

Please sign in to comment.