Commit dcbd1ae3 authored by mlmhl's avatar mlmhl

wait for bound pvc metric updated before validating

parent 271c267f
...@@ -293,6 +293,7 @@ var _ = utils.SIGDescribe("[Serial] Volume metrics", func() { ...@@ -293,6 +293,7 @@ var _ = utils.SIGDescribe("[Serial] Volume metrics", func() {
pv, pvc, err = framework.CreatePVPVC(c, pvConfig, pvcConfig, ns, true) pv, pvc, err = framework.CreatePVPVC(c, pvConfig, pvcConfig, ns, true)
Expect(err).NotTo(HaveOccurred(), "Error creating pv pvc: %v", err) Expect(err).NotTo(HaveOccurred(), "Error creating pv pvc: %v", err)
waitForPVControllerSync(metricsGrabber, boundPVKey, classKey) waitForPVControllerSync(metricsGrabber, boundPVKey, classKey)
waitForPVControllerSync(metricsGrabber, boundPVCKey, namespaceKey)
validator([]map[string]int64{{className: 1}, nil, {ns: 1}, nil}) validator([]map[string]int64{{className: 1}, nil, {ns: 1}, nil})
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment