Skip to content

Commit

Permalink
testutil: Fix linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege committed Jun 15, 2018
1 parent 15453bf commit 224ad6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/util/testutil/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
)

const (
controllerName = "tf-operator"

// labels for pods and servers.
tfReplicaTypeLabel = "tf-replica-type"
tfReplicaIndexLabel = "tf-replica-index"
Expand Down
4 changes: 3 additions & 1 deletion pkg/util/testutil/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func NewServiceList(count int32, tfJob *tfv1alpha2.TFJob, typ string, t *testing

func SetServices(serviceIndexer cache.Indexer, tfJob *tfv1alpha2.TFJob, typ string, activeWorkerServices int32, t *testing.T) {
for _, service := range NewServiceList(activeWorkerServices, tfJob, typ, t) {
serviceIndexer.Add(service)
if err := serviceIndexer.Add(service); err != nil {
t.Errorf("unexpected error when adding service %v", err)
}
}
}

0 comments on commit 224ad6f

Please sign in to comment.