Skip to content

Commit

Permalink
Merge pull request #379 from forbushbl/fixParallel
Browse files Browse the repository at this point in the history
Fix for #359 where tests flake with multiple nodes

[finishes #166770955](https://www.pivotaltracker.com/story/show/166770955)
[finishes #164260561](https://www.pivotaltracker.com/story/show/164260561)

Co-authored-by: Weyman Fung <[email protected]>
  • Loading branch information
davewalter and weymanf authored Aug 7, 2019
2 parents 31e19f6 + ae251b7 commit 0e4ba0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v3/service_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v3

import (
"encoding/json"
"fmt"

. "github.com/cloudfoundry/cf-acceptance-tests/cats_suite_helpers"

Expand All @@ -10,6 +11,7 @@ import (
"github.com/cloudfoundry/cf-acceptance-tests/helpers/assets"
"github.com/cloudfoundry/cf-acceptance-tests/helpers/random_name"
"github.com/cloudfoundry/cf-acceptance-tests/helpers/services"
. "github.com/cloudfoundry/cf-acceptance-tests/helpers/v3_helpers"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -68,7 +70,8 @@ var _ = V3Describe("service instances", func() {
{Name: serviceInstance2Name},
}

listService := cf.Cf("curl", "/v3/service_instances").Wait()
spaceGuid := GetSpaceGuidFromName(TestSetup.RegularUserContext().Space)
listService := cf.Cf("curl", fmt.Sprintf("/v3/service_instances?space_guids=%s", spaceGuid)).Wait()
Expect(listService).To(Exit(0))

var res Response
Expand Down

0 comments on commit 0e4ba0b

Please sign in to comment.