Increase the robustness of end-to-end test - part II.
Increase the robustness of end-to-end test - part II.

= Read 100 instead of 10 EventMetrics. We are still running into cases where one target is able to produce 10 EventMetrics before any EventMetrics from another target show up. This caused one failure.

= Don't read stuff from slice if its length is 0 (less than 1).

I tested this change a few times (3 so far) to make sure this works:
https://github.com/google/cloudprober/pull/524

PiperOrigin-RevId: 346693076

cloudprober/cloudprober,google/cloudprober,cloudprober/cloudprober,cloudprober/cloudprober,google/cloudprober