mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-05 15:48:21 +00:00
15 lines
364 B
Go
15 lines
364 B
Go
package syncwaves
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
. "github.com/argoproj/gitops-engine/pkg/utils/testing"
|
|
)
|
|
|
|
func TestWave(t *testing.T) {
|
|
assert.Equal(t, 0, Wave(NewPod()))
|
|
assert.Equal(t, 1, Wave(Annotate(NewPod(), "argocd.argoproj.io/sync-wave", "1")))
|
|
assert.Equal(t, 1, Wave(Annotate(NewPod(), "helm.sh/hook-weight", "1")))
|
|
}
|