Commit 5943e834 authored by Dawn Chen's avatar Dawn Chen Committed by GitHub

Merge pull request #46746 from verult/gce-pdflake

Added API node ready check after PD test deleting a GCE instance.
parents 62435ede 5c2cba39
...@@ -43,7 +43,7 @@ import ( ...@@ -43,7 +43,7 @@ import (
const ( const (
gcePDDetachTimeout = 10 * time.Minute gcePDDetachTimeout = 10 * time.Minute
gcePDDetachPollTime = 10 * time.Second gcePDDetachPollTime = 10 * time.Second
nodeStatusTimeout = 1 * time.Minute nodeStatusTimeout = 3 * time.Minute
nodeStatusPollTime = 1 * time.Second nodeStatusPollTime = 1 * time.Second
maxReadRetry = 3 maxReadRetry = 3
) )
...@@ -428,6 +428,8 @@ var _ = framework.KubeDescribe("Pod Disks", func() { ...@@ -428,6 +428,8 @@ var _ = framework.KubeDescribe("Pod Disks", func() {
By("Cleaning up PD-RW test env") By("Cleaning up PD-RW test env")
podClient.Delete(host0Pod.Name, metav1.NewDeleteOptions(0)) podClient.Delete(host0Pod.Name, metav1.NewDeleteOptions(0))
detachAndDeletePDs(diskName, []types.NodeName{host0Name}) detachAndDeletePDs(diskName, []types.NodeName{host0Name})
framework.WaitForNodeToBeReady(f.ClientSet, string(host0Name), nodeStatusTimeout)
Expect(len(nodes.Items)).To(Equal(initialGroupSize))
}() }()
By("submitting host0Pod to kubernetes") By("submitting host0Pod to kubernetes")
......
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