From 045a7112927d763fb8db73603d6ee378cc362470 Mon Sep 17 00:00:00 2001 From: Alex Collins Date: Mon, 24 May 2021 10:44:09 -0700 Subject: [PATCH] test: skip non-pipeline files --- examples/examples_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/examples_test.go b/examples/examples_test.go index e3d40d39..3affcd0e 100644 --- a/examples/examples_test.go +++ b/examples/examples_test.go @@ -4,6 +4,7 @@ package main import ( "context" + "strings" "testing" "time" @@ -30,6 +31,9 @@ func Test(t *testing.T) { infos, err := util.ReadDir(".") assert.NoError(t, err) for _, info := range infos { + if !strings.HasSuffix(info.Name(), "-pipeline.yaml") { + continue + } pipeline := info.Items[0] if pipeline.GetAnnotations()["dataflow.argoproj.io/test"] == "false" { continue