mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 09:49:13 +00:00
Convert variable tests to in-memory.
This commit is contained in:
@@ -151,9 +151,9 @@ func (th *KustTestHarness) assertActualEqualsExpected(
|
||||
func (th *KustTestHarness) reportDiffAndFail(actual []byte, expected string) {
|
||||
sE, maxLen := convertToArray(expected)
|
||||
sA, _ := convertToArray(string(actual))
|
||||
fmt.Println("-- ACTUAL -----------------")
|
||||
fmt.Println(string(actual))
|
||||
fmt.Println("---------------------------")
|
||||
fmt.Println("===== ACTUAL BEGIN ========================================")
|
||||
fmt.Print(string(actual))
|
||||
fmt.Println("===== ACTUAL END ==========================================")
|
||||
format := fmt.Sprintf("%%s %%-%ds %%s\n", maxLen+4)
|
||||
limit := 0
|
||||
if len(sE) < len(sA) {
|
||||
|
||||
Reference in New Issue
Block a user