Skip to content

Commit

Permalink
Pauses 3 seconds before verifying actual vs expected traffic targets
Browse files Browse the repository at this point in the history
 - for traffic splitting e2e tests
 - Check the comment on knative#500 (comment)
  • Loading branch information
navidshaikh committed Nov 15, 2019
1 parent d359c2f commit f8da123
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/traffic_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"strconv"
"strings"
"testing"
"time"

"gotest.tools/assert"
"knative.dev/client/pkg/util"
Expand Down Expand Up @@ -360,6 +361,7 @@ func TestTrafficSplit(t *testing.T) {
}

func (test *e2eTest) verifyTargets(t *testing.T, serviceName string, expectedTargets []TargetFields) {
time.Sleep(3 * time.Second)
out := test.serviceDescribeWithJsonPath(t, serviceName, targetsJsonPath)
assert.Check(t, out != "")
actualTargets, err := splitTargets(out, targetsSeparator, len(expectedTargets))
Expand Down

0 comments on commit f8da123

Please sign in to comment.