address comments

This commit is contained in:
Jingfang Liu
2019-04-09 15:39:56 -07:00
parent ba43ecbcb7
commit e5d730e1fe
2 changed files with 2 additions and 5 deletions

View File

@@ -88,10 +88,7 @@ func isExecAvailable(name string) bool {
if os.IsNotExist(err) {
return false
}
if f.Mode()&0111 != 0000 {
return true
}
return false
return f.Mode()&0111 != 0000
}
func loadAndConfigurePlugin(

View File

@@ -130,7 +130,7 @@ type: Opaque
func TestConfigMapGenerator(t *testing.T) {
tc := NewTestEnvController(t).Set()
//defer tc.Reset()
defer tc.Reset()
tc.BuildExecPlugin(
"someteam.example.com", "v1", "ConfigMapGenerator")