From c9e406f20af773cf65e2614a5f5376cfe30cc7d6 Mon Sep 17 00:00:00 2001 From: Jesse Simpson Date: Thu, 25 Sep 2025 20:18:20 -0400 Subject: [PATCH] Apply suggestion from @TerryHowe Co-authored-by: Terry Howe Signed-off-by: Jesse Simpson --- pkg/uploader/chart_uploader_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/uploader/chart_uploader_test.go b/pkg/uploader/chart_uploader_test.go index 692b7d452..aabcebadd 100644 --- a/pkg/uploader/chart_uploader_test.go +++ b/pkg/uploader/chart_uploader_test.go @@ -61,10 +61,7 @@ func TestChartUploader_UploadTo_Happy(t *testing.T) { err := uploader.UploadTo("testdata/test-0.1.0.tgz", "oci://test") mockedPusher.AssertCalled(t, "Push", "testdata/test-0.1.0.tgz", "oci://test") - if err != nil { - fmt.Println(err) - t.Errorf("Expected push to succeed but got error") - } + assert.NoError(err) } func TestChartUploader_UploadTo_InvalidChartUrlFormat(t *testing.T) {