Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] Speed up TestControllerClient#testControllerClientWithInvalidU…
…rls (#1395) This test is validating that as long as at least one of the hosts in the Controller urls is healthy, the "ControllerClient" won't see a "ConnectException". However, the "ControllerClient" will randomize the controller order in every request, it is not deterministic that a single run will ever attempt to communicate with the unavailable controller. Our tests are also configured to retry failing tests multiple times, and if any of them passes, it assumes the test is good. So, regressions in this logic could get missed by our team. To prevent this, the test runs the test for 100 iterations. However, this leads to a case where the test is running for 13 minutes on CI hosts. To speed up the test, we do two things: 1. Reduce the number of iterations to 50 2. Parallelize the loop to concurrently attempt multiple times
- Loading branch information