Skip to content

Commit

Permalink
More deflaking: wait 1.5 * poll interval for reload.
Browse files Browse the repository at this point in the history
The default poll interval is 2 s, so wait 3.

This doesn't slow down the test; gomega.Eventually polls every 10 ms by
default.
  • Loading branch information
sengi committed Aug 19, 2023
1 parent 666ecf4 commit ea3b932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/reload_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ var _ = Describe("reload API endpoint", func() {

Eventually(func() int {
return routerRequest(routerPort, "/foo").StatusCode
}, time.Second*1).Should(Equal(301))
}, time.Second*3).Should(Equal(301))

Eventually(func() int {
return routerRequest(routerPort, "/bar").StatusCode
}, time.Second*1).Should(Equal(301))
}, time.Second*3).Should(Equal(301))
})
})

Expand Down

0 comments on commit ea3b932

Please sign in to comment.