Skip to content

Commit

Permalink
fix(e2e): Let the subscription and related resource reconcile (knativ…
Browse files Browse the repository at this point in the history
…e#1044)

sleep for 5 seconds after subscription create and update in e2e
  • Loading branch information
navidshaikh committed Oct 7, 2020
1 parent 9c5c522 commit 983b2bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/test/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ limitations under the License.
package test

import (
"time"

"gotest.tools/assert"

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

0 comments on commit 983b2bf

Please sign in to comment.