fix kubectl config return 0 on error

This commit is contained in:
shiywang
2017-03-14 00:02:00 +08:00
parent 302aab9ba2
commit 917a0b6f1b
7 changed files with 29 additions and 46 deletions

View File

@@ -160,7 +160,7 @@ func TestCreateAuthInfoOptions(t *testing.T) {
continue
}
if !opts.complete(cmd, buff) {
if err := opts.complete(cmd, buff); err != nil {
if !test.wantCompleteErr {
t.Errorf("case %d: complete() error for flags %q: %s", i, test.flags, buff)
}