From 8936adc146e7f0fdf8c86ddbef7fb2a1314500ac Mon Sep 17 00:00:00 2001 From: Morgan Bauer Date: Mon, 31 Aug 2020 09:53:33 -0700 Subject: [PATCH] relax matcher for ResourceMetricsAPI test Instead of requiring only exactly the pods created, allow other pods to exist by ignoring any extra matches. --- test/e2e_node/resource_metrics_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/resource_metrics_test.go b/test/e2e_node/resource_metrics_test.go index c57b4eb9553..c1c4b638c0f 100644 --- a/test/e2e_node/resource_metrics_test.go +++ b/test/e2e_node/resource_metrics_test.go @@ -83,7 +83,7 @@ var _ = framework.KubeDescribe("ResourceMetricsAPI [NodeFeature:ResourceMetrics] fmt.Sprintf("%s::%s::%s", f.Namespace.Name, pod1, "busybox-container"): boundedSample(0, 100), }), - "container_memory_working_set_bytes": gstruct.MatchAllElements(containerID, gstruct.Elements{ + "container_memory_working_set_bytes": gstruct.MatchElements(containerID, gstruct.IgnoreExtras, gstruct.Elements{ fmt.Sprintf("%s::%s::%s", f.Namespace.Name, pod0, "busybox-container"): boundedSample(10*e2evolume.Kb, 80*e2evolume.Mb), fmt.Sprintf("%s::%s::%s", f.Namespace.Name, pod1, "busybox-container"): boundedSample(10*e2evolume.Kb, 80*e2evolume.Mb), }),