Skip to content

Commit

Permalink
Let channel reconcile, sleep for 5 secs after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
navidshaikh committed Aug 18, 2020
1 parent 50dda70 commit 4bbf451
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/test/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package test

import (
"time"

"gotest.tools/assert"

"knative.dev/client/pkg/util"
Expand All @@ -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 {
Expand Down

0 comments on commit 4bbf451

Please sign in to comment.