Skip to content

Commit

Permalink
Merge pull request kubernetes#46746 from verult/gce-pdflake
Browse files Browse the repository at this point in the history
Added API node ready check after PD test deleting a GCE instance.
  • Loading branch information
dchen1107 authored Jun 1, 2017
2 parents 62435ed + 5c2cba3 commit 5943e83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/storage/pd.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
const (
gcePDDetachTimeout = 10 * time.Minute
gcePDDetachPollTime = 10 * time.Second
nodeStatusTimeout = 1 * time.Minute
nodeStatusTimeout = 3 * time.Minute
nodeStatusPollTime = 1 * time.Second
maxReadRetry = 3
)
Expand Down Expand Up @@ -428,6 +428,8 @@ var _ = framework.KubeDescribe("Pod Disks", func() {
By("Cleaning up PD-RW test env")
podClient.Delete(host0Pod.Name, metav1.NewDeleteOptions(0))
detachAndDeletePDs(diskName, []types.NodeName{host0Name})
framework.WaitForNodeToBeReady(f.ClientSet, string(host0Name), nodeStatusTimeout)
Expect(len(nodes.Items)).To(Equal(initialGroupSize))
}()

By("submitting host0Pod to kubernetes")
Expand Down

0 comments on commit 5943e83

Please sign in to comment.