Merge pull request #3999 from hashicorp/rescheduling_e2e_fixes

Small tweaks to rescheduling e2e tests
This commit is contained in:
Preetha 2018-03-17 09:57:04 -05:00 committed by GitHub
commit 38b2e23558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -48,7 +48,6 @@ var _ = Describe("Server Side Restart Tests", func() {
BeforeSuite(func() {
conf := api.DefaultConfig()
conf.Address = "http://localhost:4646"
// Create client
client, err := api.NewClient(conf)
@ -95,7 +94,7 @@ var _ = Describe("Server Side Restart Tests", func() {
expected = append(expected, "failed")
}
It("Should have all failed", func() {
Eventually(allocStatuses, 5*time.Second, time.Second).ShouldNot(
Eventually(allocStatuses, 6*time.Second, time.Second).ShouldNot(
SatisfyAll(ContainElement("pending"),
ContainElement("running")))
})
@ -106,7 +105,7 @@ var _ = Describe("Server Side Restart Tests", func() {
specFile = "input/reschedule_success.hcl"
})
It("Should have some running allocs", func() {
Eventually(allocStatuses, 5*time.Second, time.Second).Should(
Eventually(allocStatuses, 6*time.Second, time.Second).Should(
ContainElement("running"))
})
})