@@ -42,28 +42,15 @@ metadata:
42
42
namespace: namespaceB
43
43
` )
44
44
45
- var readFileC = []byte (`
46
- apiVersion: v1
47
- kind: Pod
48
- metadata:
49
- name: objC
50
- ` )
51
-
52
45
func TestComplete (t * testing.T ) {
53
46
d1 , err := ioutil .TempDir ("" , "test-dir" )
54
47
if ! assert .NoError (t , err ) {
55
48
assert .FailNow (t , err .Error ())
56
49
}
57
50
defer os .RemoveAll (d1 )
58
- d2 , err := ioutil .TempDir ("" , "test-dir" )
59
- if ! assert .NoError (t , err ) {
60
- assert .FailNow (t , err .Error ())
61
- }
62
- defer os .RemoveAll (d2 )
63
51
64
52
writeFile (t , filepath .Join (d1 , "a_test.yaml" ), readFileA )
65
53
writeFile (t , filepath .Join (d1 , "b_test.yaml" ), readFileB )
66
- writeFile (t , filepath .Join (d2 , "b_test.yaml" ), readFileC )
67
54
68
55
tests := map [string ]struct {
69
56
args []string
@@ -85,10 +72,6 @@ func TestComplete(t *testing.T) {
85
72
args : []string {d1 },
86
73
isError : true ,
87
74
},
88
- //"No namespace set is fine": {
89
- // args: []string{d2},
90
- // isError: false,
91
- //},
92
75
}
93
76
for name , tc := range tests {
94
77
t .Run (name , func (t * testing.T ) {
0 commit comments