mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 16:52:40 +02:00
@@ -165,7 +165,7 @@ func TestApply_hooks(t *testing.T) {
|
||||
t.Errorf("unexpected log:\nDIFF\n%s\nEOD", diff)
|
||||
}
|
||||
} else {
|
||||
assertEqualsToSnapshot(t, "log", bs.String())
|
||||
assertLogEqualsToSnapshot(t, bs.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ func TestApply_3(t *testing.T) {
|
||||
t.Errorf("unexpected log:\nDIFF\n%s\nEOD", diff)
|
||||
}
|
||||
} else {
|
||||
assertEqualsToSnapshot(t, "log", bs.String())
|
||||
assertLogEqualsToSnapshot(t, bs.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ func TestApply_2(t *testing.T) {
|
||||
t.Errorf("unexpected log:\nDIFF\n%s\nEOD", diff)
|
||||
}
|
||||
} else {
|
||||
assertEqualsToSnapshot(t, "log", bs.String())
|
||||
assertLogEqualsToSnapshot(t, bs.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4353,7 +4353,7 @@ changing working directory back to "/path/to"
|
||||
t.Errorf("unexpected log for data defined %s:\nDIFF\n%s\nEOD", tc.loc, diff)
|
||||
}
|
||||
} else {
|
||||
assertEqualsToSnapshot(t, "log", bs.String())
|
||||
assertLogEqualsToSnapshot(t, bs.String())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -10,6 +10,12 @@ import (
|
||||
"github.com/google/go-cmp/cmp"
|
||||
)
|
||||
|
||||
func assertLogEqualsToSnapshot(t *testing.T, data string) {
|
||||
t.Helper()
|
||||
|
||||
assertEqualsToSnapshot(t, "log", data)
|
||||
}
|
||||
|
||||
func assertEqualsToSnapshot(t *testing.T, name string, data string) {
|
||||
type thisPkgLocator struct{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user