test: port test changes to oss (#8694)

This commit is contained in:
Calvin Leung Huang
2020-04-07 11:26:51 -07:00
committed by GitHub
parent 867218c119
commit ba1871d48e
2 changed files with 12 additions and 1 deletions

View File

@@ -390,6 +390,7 @@ func TestPredict_Plugins(t *testing.T) {
"redshift-database-plugin",
"ssh",
"totp",
"transform",
"transit",
"userpass",
},
@@ -415,6 +416,14 @@ func TestPredict_Plugins(t *testing.T) {
}
}
}
if !strutil.StrListContains(act, "transform") {
for i, v := range tc.exp {
if v == "transform" {
tc.exp = append(tc.exp[:i], tc.exp[i+1:]...)
break
}
}
}
if !reflect.DeepEqual(act, tc.exp) {
t.Errorf("expected:%q, got: %q", tc.exp, act)
}