Skip to content

Commit 15fa090

Browse files
committed
Fix hashes in test
1 parent 70cf8aa commit 15fa090

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/helm/helm_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ func TestGenerateHashOnCrd(t *testing.T) {
224224
crd := data[0]
225225

226226
hash, err := generateHashOnCrd(crd)
227-
if err != nil || hash != "fba38c4479874778a2e0bf38c2e94f83d57d9f24c9c7d71e123bc5c1961ed936" {
228-
t.Error("Failed to generate correctly")
227+
if err != nil || hash != "7bfd65e963e76680dc5160b6a55c04c3d9780c84aee1413ae710e4b5279cfe14" {
228+
t.Errorf("Failed to generate correctly, got %s", hash)
229229
}
230230
}
231231

@@ -300,7 +300,7 @@ func TestDifferenceInTwoDifferentFiles(t *testing.T) {
300300
func TestGenerateHashOnChart(t *testing.T) {
301301
hash, _ := generalHashFunction("demo/charts/app-of-apps")
302302
h := hex.EncodeToString(hash)
303-
actualHash := "95630c1ec9b835536a3056d4dcbbd6e023111c5e4340ac80b945c2e3a4f8fc42"
303+
actualHash := "13aa148adefa3d633e5ce95584d3c95297a4417977837040cd67f0afbca17b5a"
304304
if h != actualHash {
305305
t.Errorf("Failed to generate a generic hash on a chart. got: %s wanted: %s", h, actualHash)
306306
}

0 commit comments

Comments
 (0)