argo-cd/pkg/sync/syncwaves/waves_test.go
2020-05-28 17:18:31 -07:00

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")))
}