remove packages imported twice (#4275)

This commit is contained in:
Girish Ramnani
2020-12-03 14:38:02 +05:30
committed by GitHub
parent 702b7e7dd1
commit 529a1bd5de
8 changed files with 39 additions and 47 deletions

View File

@@ -8,7 +8,6 @@ import (
"testing"
projectv1 "github.com/openshift/api/project/v1"
v1 "github.com/openshift/api/project/v1"
"github.com/openshift/odo/pkg/kclient"
"github.com/openshift/odo/pkg/occlient"
"github.com/openshift/odo/pkg/odo/genericclioptions"
@@ -412,7 +411,7 @@ func TestList(t *testing.T) {
tests := []struct {
name string
wantErr bool
returnedProjects *v1.ProjectList
returnedProjects *projectv1.ProjectList
expectedProjects ProjectList
}{
{
@@ -440,7 +439,7 @@ func TestList(t *testing.T) {
{
name: "Case 3: No project returned",
wantErr: false,
returnedProjects: &v1.ProjectList{},
returnedProjects: &projectv1.ProjectList{},
expectedProjects: getMachineReadableFormatForList(
nil,
),