fix TestHelmInitByAliyunStableRepo

This commit is contained in:
GEcko
2018-12-04 14:50:53 +08:00
parent 7f837c8af8
commit e245072869
+1 -5
View File
@@ -531,11 +531,7 @@ func TestHelmInitByAliyunStableRepo(t *testing.T) {
}
init := doHelmInit(plugin)
result := strings.Join(init, " ")
expected := "init "
if plugin.Config.StableRepoURL != "" {
expected = expected + "--stable-repo-url"
expected = expected + " " + plugin.Config.StableRepoURL
}
expected := "init --stable-repo-url " + plugin.Config.StableRepoURL
if expected != result {
t.Error("Helm cannot init for stable repository")
}