mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-14 22:11:57 +08:00
fix replaceEnvvars test and clear build
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ func TestReplaceEnvvars(t *testing.T) {
|
||||
prefix := "MY"
|
||||
testText := "this should be ${TAG} now ${TAG}"
|
||||
result := getEnvVars(testText)
|
||||
resolved := replaceEnvvars(result, prefix, testText)
|
||||
resolved := replaceEnvvars(result, prefix, testText, false)
|
||||
if !strings.Contains(resolved, tag) {
|
||||
t.Errorf("EnvVar MY_TAG no replaced by %s -- %s \n", tag, resolved)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user