Expect(err).NotTo(HaveOccurred()) }) It("can immediately access the container port with the associated routes", func() { Eventually(helpers.ResponseCodeFromHostPoller(componentMaker.Addresses.Router, "lrp-route-8080")).Should(Equal(http.StatusOK)) Consistently(helpers.ResponseCodeFromHostPoller(componentMaker.Addresses.Router, "lrp-route-8080")).Should(Equal(http.StatusOK)) Eventually(helpers.ResponseCodeFromHostPoller(componentMaker.Addresses.Router, "lrp-route-9080")).Should(Equal(http.StatusOK)) Consistently(helpers.ResponseCodeFromHostPoller(componentMaker.Addresses.Router, "lrp-route-9080")).Should(Equal(http.StatusOK)) }) }) }) Describe("when started with 2 instances", func() { BeforeEach(func() { lrp.Instances = 2 }) JustBeforeEach(func() { Eventually(func() []receptor.ActualLRPResponse { lrps, err := receptorClient.ActualLRPsByProcessGuid(processGuid) Expect(err).NotTo(HaveOccurred()) return lrps }).Should(HaveLen(2)) }) Describe("changing the instances", func() { var newInstances int BeforeEach(func() {