From 4bbf45182d6a10cad8e030b0338ee0f464518bea Mon Sep 17 00:00:00 2001 From: Navid Shaikh Date: Tue, 18 Aug 2020 12:57:36 +0530 Subject: [PATCH] Let channel reconcile, sleep for 5 secs after creation --- lib/test/channel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/test/channel.go b/lib/test/channel.go index 9dd378212f..5eedeb6c78 100644 --- a/lib/test/channel.go +++ b/lib/test/channel.go @@ -15,6 +15,8 @@ package test import ( + "time" + "gotest.tools/assert" "knative.dev/client/pkg/util" @@ -26,6 +28,8 @@ func ChannelCreate(r *KnRunResultCollector, cname string, args ...string) { out := r.KnTest().Kn().Run(cmd...) r.AssertNoError(out) assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, "channel", cname, "created")) + // let channel reconcile TODO: fix the wait for channel to become ready + time.Sleep(5 * time.Second) } func ChannelList(r *KnRunResultCollector, args ...string) string {