argo-cd/gitops-engine/pkg/sync/hook/helm/weight_test.go
Leonardo Luz Almeida bcc0243f1e
prepare repo for migration to ArgoCD repo
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
2025-09-23 10:05:42 -04:00

14 lines
332 B
Go

package helm
import (
"testing"
testingutils "github.com/argoproj/gitops-engine/pkg/utils/testing"
"github.com/stretchr/testify/assert"
)
func TestWeight(t *testing.T) {
assert.Equal(t, 0, Weight(testingutils.NewPod()))
assert.Equal(t, 1, Weight(testingutils.Annotate(testingutils.NewPod(), "helm.sh/hook-weight", "1")))
}