Skip to content

Commit 4614817

Browse files
committed
Increase time it takes for second pod to startup for offline resizing
1 parent bad8a51 commit 4614817

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/e2e/storage/testsuites/volume_expand.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ const (
4242
resizePollInterval = 2 * time.Second
4343
// total time to wait for cloudprovider or file system resize to finish
4444
totalResizeWaitPeriod = 10 * time.Minute
45+
46+
// resizedPodStartupTimeout defines time we should wait for pod that uses offline
47+
// resized volume to startup. This time is higher than default PodStartTimeout because
48+
// typically time to detach and then attach a volume is amortized in this time duration.
49+
resizedPodStartupTimeout = 10 * time.Minute
50+
4551
// time to wait for PVC conditions to sync
4652
pvcConditionSyncPeriod = 2 * time.Minute
4753
)
@@ -214,7 +220,7 @@ func (v *volumeExpandTestSuite) DefineTests(driver TestDriver, pattern testpatte
214220
SeLinuxLabel: e2epv.SELinuxLabel,
215221
NodeSelection: l.config.ClientNodeSelection,
216222
}
217-
l.pod2, err = e2epod.CreateSecPodWithNodeSelection(f.ClientSet, &podConfig, framework.PodStartTimeout)
223+
l.pod2, err = e2epod.CreateSecPodWithNodeSelection(f.ClientSet, &podConfig, resizedPodStartupTimeout)
218224
defer func() {
219225
err = e2epod.DeletePodWithWait(f.ClientSet, l.pod2)
220226
framework.ExpectNoError(err, "while cleaning up pod before exiting resizing test")

0 commit comments

Comments
 (0)