From 983b2bf4db5e573a8d02de5658d1f1784358ed29 Mon Sep 17 00:00:00 2001 From: Navid Shaikh Date: Tue, 6 Oct 2020 13:15:20 +0530 Subject: [PATCH] fix(e2e): Let the subscription and related resource reconcile (#1044) sleep for 5 seconds after subscription create and update in e2e --- lib/test/subscription.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/test/subscription.go b/lib/test/subscription.go index 08734f6cae..35d2d169b9 100644 --- a/lib/test/subscription.go +++ b/lib/test/subscription.go @@ -17,6 +17,8 @@ limitations under the License. package test import ( + "time" + "gotest.tools/assert" "knative.dev/client/pkg/util" @@ -28,6 +30,8 @@ func SubscriptionCreate(r *KnRunResultCollector, sname string, args ...string) { out := r.KnTest().Kn().Run(cmd...) r.AssertNoError(out) assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "subscription", sname, "created")) + // let the subscription and related resource reconcile + time.Sleep(time.Second * 5) } func SubscriptionList(r *KnRunResultCollector, args ...string) string { @@ -58,4 +62,6 @@ func SubscriptionUpdate(r *KnRunResultCollector, sname string, args ...string) { out := r.KnTest().Kn().Run(cmd...) r.AssertNoError(out) assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "subscription", sname, "updated")) + // let the subscription and related resource reconcile + time.Sleep(time.Second * 5) }