diff --git a/test/e2e/storage/testsuites/subpath.go b/test/e2e/storage/testsuites/subpath.go index 1ddc967a74c..3e35e2ecda2 100644 --- a/test/e2e/storage/testsuites/subpath.go +++ b/test/e2e/storage/testsuites/subpath.go @@ -291,7 +291,8 @@ func testSubPath(input *subPathTestInput) { SubPath: "subpath2", }) - addMultipleWrites(&input.pod.Spec.InitContainers[1], filepath1, filepath2) + // Write the files from container 0 and instantly read them back + addMultipleWrites(&input.pod.Spec.Containers[0], filepath1, filepath2) testMultipleReads(input.f, input.pod, 0, filepath1, filepath2) })