Skip to content

Commit

Permalink
Merge pull request #21032 from sjenning/fix-flake-20910
Browse files Browse the repository at this point in the history
e2e: use runId UUID for staticIPName to avoid collision
  • Loading branch information
mikedanese committed Feb 11, 2016
2 parents f0061c7 + 982af89 commit b3bc741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/service.go
Expand Up @@ -489,8 +489,7 @@ var _ = Describe("Services", func() {
staticIPName := ""
if providerIs("gce", "gke") {
By("creating a static load balancer IP")
rand.Seed(time.Now().UTC().UnixNano())
staticIPName = fmt.Sprintf("e2e-external-lb-test-%d", rand.Intn(65535))
staticIPName = fmt.Sprintf("e2e-external-lb-test-%s", runId)
requestedIP, err = createGCEStaticIP(staticIPName)
Expect(err).NotTo(HaveOccurred())
defer func() {
Expand Down Expand Up @@ -789,6 +788,7 @@ var _ = Describe("Services", func() {
}

outOfRangeNodePort := 0
rand.Seed(time.Now().UTC().UnixNano())
for {
outOfRangeNodePort = 1 + rand.Intn(65535)
if !ServiceNodePortRange.Contains(outOfRangeNodePort) {
Expand Down

1 comment on commit b3bc741

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 15457 outcome was SUCCESS
Summary: Tests passed: 1, ignored: 225 Build time: 00:09:34

Please sign in to comment.