From dcbd1ae3cfc87a1cb58d8c1a37b18db3c3f7993d Mon Sep 17 00:00:00 2001 From: mlmhl Date: Fri, 16 Feb 2018 09:57:30 +0800 Subject: [PATCH] wait for bound pvc metric updated before validating --- test/e2e/storage/volume_metrics.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/storage/volume_metrics.go b/test/e2e/storage/volume_metrics.go index 34fdf17d3ae..a19745a3842 100644 --- a/test/e2e/storage/volume_metrics.go +++ b/test/e2e/storage/volume_metrics.go @@ -293,6 +293,7 @@ var _ = utils.SIGDescribe("[Serial] Volume metrics", func() { pv, pvc, err = framework.CreatePVPVC(c, pvConfig, pvcConfig, ns, true) Expect(err).NotTo(HaveOccurred(), "Error creating pv pvc: %v", err) waitForPVControllerSync(metricsGrabber, boundPVKey, classKey) + waitForPVControllerSync(metricsGrabber, boundPVCKey, namespaceKey) validator([]map[string]int64{{className: 1}, nil, {ns: 1}, nil}) })