fix replaceEnvvars test and clear build

This commit is contained in:
Danny Krainas
2017-10-27 15:12:32 -04:00
parent c47f562846
commit 7c83fbd5c0
+1 -1
View File
@@ -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)
}