Open ralphlange opened 5 years ago
I am having trouble reproducing it...predictably.
To an extent this does make an assumption of timing... I will have to think of a completely different set of checks
Well, the test sets up sending monitors every 100ms, creates a subscription, then sleeps for 500ms, and expects to have received 4 or 5 updates. If the sleep takes longer than 500ms (and those functions usually guarantee a minimum sleep time), the subscription might as well receive 6 updates, which is what's happening in our case.
I would suggest to either simply loosen the criteria allowing 4-6 updates after a 500ms sleep, or to turn things around, measure the time between updates, and use criteria on the results' statistics (mix/max/avg after removing outliers or similar).
We are seeing intermittent build/test failures with the gpclient tests:
From a distance, this looks like the test is making assumptions on parallelism/timing/resource usage on the host that are not always true. Is there a way to improve robustness of this test?