Skip to content

Commit 7c5aa7a

Browse files
author
Jijie Wei
committed
remove test
1 parent 2da9da4 commit 7c5aa7a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pkg/config/initoptions_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,15 @@ metadata:
4242
namespace: namespaceB
4343
`)
4444

45-
var readFileC = []byte(`
46-
apiVersion: v1
47-
kind: Pod
48-
metadata:
49-
name: objC
50-
`)
51-
5245
func TestComplete(t *testing.T) {
5346
d1, err := ioutil.TempDir("", "test-dir")
5447
if !assert.NoError(t, err) {
5548
assert.FailNow(t, err.Error())
5649
}
5750
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)
6351

6452
writeFile(t, filepath.Join(d1, "a_test.yaml"), readFileA)
6553
writeFile(t, filepath.Join(d1, "b_test.yaml"), readFileB)
66-
writeFile(t, filepath.Join(d2, "b_test.yaml"), readFileC)
6754

6855
tests := map[string]struct {
6956
args []string
@@ -85,10 +72,6 @@ func TestComplete(t *testing.T) {
8572
args: []string{d1},
8673
isError: true,
8774
},
88-
//"No namespace set is fine": {
89-
// args: []string{d2},
90-
// isError: false,
91-
//},
9275
}
9376
for name, tc := range tests {
9477
t.Run(name, func(t *testing.T) {

0 commit comments

Comments
 (0)