Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Mar 11, 2024
1 parent 60721be commit afe2bf6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions flyteplugins/go/tasks/plugins/array/k8s/management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ import (
)

type metadata struct {
exists bool
size int64
etag string
exists bool
size int64
etag string
contentMD5 string
}

func (m metadata) Exists() bool {
Expand All @@ -44,6 +45,10 @@ func (m metadata) Etag() string {
return m.etag
}

func (m metadata) ContentMD5() string {
return m.contentMD5
}

func createSampleContainerTask() *core2.Container {
return &core2.Container{
Command: []string{"cmd"},
Expand Down Expand Up @@ -127,7 +132,7 @@ func getMockTaskExecutionContext(ctx context.Context, parallelism int) *mocks.Ta
matchedBy := mock.MatchedBy(func(s storage.DataReference) bool {
return true
})
composedProtobufStore.On("Head", mock.Anything, matchedBy).Return(metadata{true, 0, ""}, nil)
composedProtobufStore.On("Head", mock.Anything, matchedBy).Return(metadata{true, 0, "", ""}, nil)
dataStore := &storage.DataStore{
ComposedProtobufStore: composedProtobufStore,
ReferenceConstructor: &storage.URLPathConstructor{},
Expand Down

0 comments on commit afe2bf6

Please sign in to comment.