mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 01:01:17 +02:00
replace custom diff in tests using testify (#1215)
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/helmfile/vals"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/helmfile/helmfile/pkg/exectest"
|
||||
@@ -1399,10 +1400,7 @@ changing working directory back to "/path/to"
|
||||
if tc.log != "" {
|
||||
actual := bs.String()
|
||||
|
||||
diff, exists := testhelper.Diff(tc.log, actual, 3)
|
||||
if exists {
|
||||
t.Errorf("unexpected log for data defined %s:\nDIFF\n%s\nEOD", tc.loc, diff)
|
||||
}
|
||||
assert.Equal(t, tc.log, actual, 3)
|
||||
} else {
|
||||
testhelper.RequireLog(t, "app_diff_test_1", bs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user