Fix snapshot tests to pass regardless of helm version (#572)

* Fix snapshot tests to pass regardless of helm version

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-12-10 10:54:03 +08:00
committed by GitHub
parent 398c812e49
commit 70a1b3b513
3 changed files with 24 additions and 11 deletions
+3 -1
View File
@@ -23,6 +23,8 @@ type logWriter struct {
}
func (w *logWriter) Write(p []byte) (int, error) {
w.log.Debugf("%s%s", w.prefix, strings.TrimSpace(string(p)))
for _, line := range strings.Split(string(p), "\n") {
w.log.Debugf("%s%s", w.prefix, strings.TrimSpace(line))
}
return len(p), nil
}