From 852433e5b4117a6f93dee24cce6a02b45579820e Mon Sep 17 00:00:00 2001 From: Jerome Guionnet Date: Mon, 11 Dec 2023 17:11:11 -0800 Subject: [PATCH] Change the snapshot diff test so it passes --- modules/helm/template_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/helm/template_test.go b/modules/helm/template_test.go index 3870a459a..6db5db24d 100644 --- a/modules/helm/template_test.go +++ b/modules/helm/template_test.go @@ -137,7 +137,7 @@ func TestRemoteChartRenderDiff(t *testing.T) { var deployment appsv1.Deployment UnmarshalK8SYaml(t, output, &deployment) - // run the diff and assert there are no differences + // run the diff and assert there is one difference: the image name number_of_diffs := DiffAgainstSnapshot(output, releaseName) - require.Equal(t, number_of_diffs, 0) + require.Equal(t, 1, number_of_diffs) }