"github.com/cloudfoundry/loggregatorlib/loggregatorclient" . "github.com/onsi/ginkgo" "github.com/onsi/ginkgo/config" . "github.com/onsi/gomega" ) //go:generate counterfeiter -o fakess/client.go ../../github.com/cloudfoundry/loggregatorlib/loggregatorclient Client var _ = Describe("DopplerPool", func() { var ( pool *clientpool.DopplerPool clientFactory func(logger *steno.Logger, u string) (loggregatorclient.Client, error) logger *steno.Logger port int preferredServers map[string]string allServers map[string]string preferredLegacy map[string]string allLegacy map[string]string ) BeforeEach(func() { logger = steno.NewLogger("TestLogger") port = 5000 + config.GinkgoConfig.ParallelNode*100 clientFactory = fakeClientFactory preferredServers = map[string]string{
import ( "errors" "metron/clientpool" steno "github.com/cloudfoundry/gosteno" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("DopplerPool", func() { var ( pool *clientpool.DopplerPool logger *steno.Logger mockClientCreator *mockClientCreator addresses []string ) BeforeEach(func() { logger = steno.NewLogger("TestLogger") addresses = []string{ "pahost:paport", "pbhost:pbport", } mockClientCreator = newMockClientCreator() })