Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Apr 10, 2024
1 parent d459944 commit 5310d3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 295 deletions.
17 changes: 7 additions & 10 deletions modules/api/pkg/resource/cronjob/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
batch "k8s.io/api/batch/v1"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"

metricapi "k8s.io/dashboard/api/pkg/integration/metric/api"
"k8s.io/dashboard/api/pkg/resource/common"
"k8s.io/dashboard/api/pkg/resource/cronjob"
"k8s.io/dashboard/api/pkg/resource/dataselect"
Expand All @@ -39,11 +38,10 @@ func TestGetCronJobListFromChannels(t *testing.T) {
batch.CronJobList{},
nil,
&cronjob.CronJobList{
ListMeta: types.ListMeta{},
CumulativeMetrics: make([]metricapi.Metric, 0),
Status: common.ResourceStatus{},
Items: []cronjob.CronJob{},
Errors: []error{},
ListMeta: types.ListMeta{},
Status: common.ResourceStatus{},
Items: []cronjob.CronJob{},
Errors: []error{},
},
nil,
},
Expand Down Expand Up @@ -74,9 +72,8 @@ func TestGetCronJobListFromChannels(t *testing.T) {
},
nil,
&cronjob.CronJobList{
ListMeta: types.ListMeta{TotalItems: 2},
CumulativeMetrics: make([]metricapi.Metric, 0),
Status: common.ResourceStatus{Failed: 2},
ListMeta: types.ListMeta{TotalItems: 2},
Status: common.ResourceStatus{Failed: 2},
Items: []cronjob.CronJob{{
ObjectMeta: types.ObjectMeta{
Name: name,
Expand Down Expand Up @@ -111,7 +108,7 @@ func TestGetCronJobListFromChannels(t *testing.T) {
channels.CronJobList.Error <- c.rawError
channels.CronJobList.List <- &c.raw

actual, err := cronjob.GetCronJobListFromChannels(channels, dataselect.NoDataSelect, nil)
actual, err := cronjob.GetCronJobListFromChannels(channels, dataselect.NoDataSelect)
if !reflect.DeepEqual(actual, c.expected) {
t.Errorf("GetCronJobListFromChannels() ==\n %#v\nExpected: %#v", actual, c.expected)
}
Expand Down
285 changes: 0 additions & 285 deletions modules/common/client/verber_test.go

This file was deleted.

0 comments on commit 5310d3f

Please sign in to comment.