From 41cbf952ca02c7a822b057c33016ec0e91c00d22 Mon Sep 17 00:00:00 2001 From: Prashanth Balasubramanian Date: Mon, 29 Feb 2016 13:10:48 -0800 Subject: [PATCH] Ignore network flake in services e2e. --- test/e2e/service.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/e2e/service.go b/test/e2e/service.go index 12c852659ee..5bcfc5bad85 100644 --- a/test/e2e/service.go +++ b/test/e2e/service.go @@ -1395,7 +1395,14 @@ func verifyServeHostnameServiceUp(c *client.Client, ns, host string, expectedPod gotEndpoints.Insert(trimmedEp) } } - if expectedEndpoints.Equal(gotEndpoints) { + // TODO: simply checking that the retrieved endpoints is a superset + // of the expected allows us to ignore intermitten network flakes that + // result in output like "wget timed out", but these should be rare + // and we need a better way to track how often it occurs. + if gotEndpoints.IsSuperset(expectedEndpoints) { + if !gotEndpoints.Equal(expectedEndpoints) { + Logf("Ignoring unexpected output wgetting endpoints of service %s: %v", serviceIP, gotEndpoints.Difference(expectedEndpoints)) + } passed = true break }