Make flake in configMap update e2e easier to debug

This commit is contained in:
Paul Morie
2016-02-19 14:08:59 -05:00
parent ced1ddfcc7
commit f8d58ac708
2 changed files with 8 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ var _ = Describe("ConfigMap", func() {
// Kubelet projects the update into the volume and the container picks
// it up. This timeout is based on the default Kubelet sync period (1
// minute) plus additional time for fudge factor.
const podLogTimeout = 90 * time.Second
const podLogTimeout = 300 * time.Second
name := "configmap-test-upd-" + string(util.NewUUID())
volumeName := "configmap-volume"
@@ -267,6 +267,7 @@ var _ = Describe("ConfigMap", func() {
_, err = f.Client.ConfigMaps(f.Namespace.Name).Update(configMap)
Expect(err).NotTo(HaveOccurred())
By("waiting to observe update in volume")
Eventually(pollLogs, podLogTimeout, poll).Should(ContainSubstring("value-2"))
})