bbsArgs = testrunner.Args{ Address: bbsAddress, AdvertiseURL: bbsURL.String(), AuctioneerAddress: auctioneerServer.URL(), ConsulCluster: consulRunner.ConsulCluster(), DropsondePort: port, EtcdCluster: etcdUrl, MetricsReportInterval: 10 * time.Millisecond, HealthAddress: bbsHealthAddress, EncryptionKeys: []string{"label:key"}, ActiveKeyLabel: "label", } if test_helpers.UseSQL() { bbsArgs.DatabaseDriver = sqlRunner.DriverName() bbsArgs.DatabaseConnectionString = sqlRunner.ConnectionString() } storeClient = etcd.NewStoreClient(etcdClient) consulHelper = test_helpers.NewConsulHelper(logger, consulClient) }) var _ = AfterEach(func() { ginkgomon.Kill(bbsProcess) // Make sure the healthcheck server is really gone before trying to start up // the bbs again in another test. Eventually(func() error { conn, err := net.Dial("tcp", bbsHealthAddress) if err == nil { conn.Close() return nil