Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-valkov authored and axsaucedo committed Feb 11, 2021
1 parent 59155db commit add4a67
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions executor/api/metric/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
. "github.com/onsi/gomega"
v1 "github.com/seldonio/seldon-core/operator/apis/machinelearning.seldon.io/v1"
v12 "k8s.io/api/core/v1"
v1meta "k8s.io/apimachinery/pkg/apis/meta/v1"
"testing"
)

Expand All @@ -22,7 +21,7 @@ func TestNewFromtMeta(t *testing.T) {
},
ComponentSpecs: []*v1.SeldonPodSpec{
&v1.SeldonPodSpec{
Metadata: v1meta.ObjectMeta{},
Metadata: v1.ObjectMeta{},
Spec: v12.PodSpec{
Containers: []v12.Container{
v12.Container{
Expand Down
3 changes: 1 addition & 2 deletions executor/api/rest/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/seldonio/seldon-core/executor/k8s"
v1 "github.com/seldonio/seldon-core/operator/apis/machinelearning.seldon.io/v1"
v12 "k8s.io/api/core/v1"
v1meta "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
Expand Down Expand Up @@ -228,7 +227,7 @@ func TestClientMetrics(t *testing.T) {
Annotations: map[string]string{},
ComponentSpecs: []*v1.SeldonPodSpec{
&v1.SeldonPodSpec{
Metadata: v1meta.ObjectMeta{},
Metadata: v1.ObjectMeta{},
Spec: v12.PodSpec{
Containers: []v12.Container{
v12.Container{
Expand Down
1 change: 0 additions & 1 deletion executor/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/confluentinc/confluent-kafka-go v1.4.2
github.com/ghodss/yaml v1.0.0
github.com/go-logr/logr v0.1.0
github.com/gogo/protobuf v1.3.1
github.com/golang/protobuf v1.4.2
github.com/google/uuid v1.1.2
github.com/gorilla/mux v1.8.0
Expand Down
2 changes: 0 additions & 2 deletions executor/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2096,8 +2096,6 @@ sigs.k8s.io/controller-runtime v0.5.4/go.mod h1:JZUwSMVbxDupo0lTJSSFP5pimEyxGynR
sigs.k8s.io/controller-runtime v0.6.1/go.mod h1:XRYBPdbf5XJu9kpS84VJiZ7h/u1hF3gEORz0efEja7A=
sigs.k8s.io/controller-runtime v0.6.2 h1:jkAnfdTYBpFwlmBn3pS5HFO06SfxvnTZ1p5PeEF/zAA=
sigs.k8s.io/controller-runtime v0.6.2/go.mod h1:vhcq/rlnENJ09SIRp3EveTaZ0yqH526hjf9iJdbUJ/E=
sigs.k8s.io/controller-runtime v0.6.3 h1:SBbr+inLPEKhvlJtrvDcwIpm+uhDvp63Bl72xYJtoOE=
sigs.k8s.io/controller-runtime v0.6.3/go.mod h1:WlZNXcM0++oyaQt4B7C2lEE5JYRs8vJUzRP4N4JpdAY=
sigs.k8s.io/controller-runtime v0.6.4 h1:4013CKsBs5bEqo+LevzDett+LLxag/FjQWG94nVZ/9g=
sigs.k8s.io/controller-runtime v0.6.4/go.mod h1:WlZNXcM0++oyaQt4B7C2lEE5JYRs8vJUzRP4N4JpdAY=
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
Expand Down

0 comments on commit add4a67

Please sign in to comment.